diff --git a/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle b/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle index 5e2c3e9..6e40341 100644 --- a/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle +++ b/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle @@ -145,7 +145,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { ext.server = geUrl ext.allowUntrustedServer = geAllowUntrustedServer ext.buildScan.publishAlways() - ext.buildScan.uploadInBackground = false + ext.buildScan.uploadInBackground = buildScanUploadInBackground ext.buildScan.value CI_AUTO_INJECTION_CUSTOM_VALUE_NAME, CI_AUTO_INJECTION_CUSTOM_VALUE_VALUE } }