Loading sources/src/develocity/build-scan.ts +11 −7 Changes for sources/src/develocity/build-scan.ts: 11 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -5,13 +5,6 @@ import {setupToken} from './short-lived-token' export async function setup(config: BuildScanConfig): Promise<void> { maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle') maybeExportVariable('DEVELOCITY_AUTO_INJECTION_CUSTOM_VALUE', 'gradle-actions') if (config.getBuildScanPublishEnabled()) { maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true') maybeExportVariable('DEVELOCITY_PLUGIN_VERSION', '3.18.2') maybeExportVariable('DEVELOCITY_CCUD_PLUGIN_VERSION', '2.0.2') maybeExportVariable('DEVELOCITY_TERMS_OF_USE_URL', config.getBuildScanTermsOfUseUrl()) maybeExportVariable('DEVELOCITY_TERMS_OF_USE_AGREE', config.getBuildScanTermsOfUseAgree()) } maybeExportVariableNotEmpty('DEVELOCITY_INJECTION_ENABLED', config.getDevelocityInjectionEnabled()) maybeExportVariableNotEmpty('DEVELOCITY_URL', config.getDevelocityUrl()) Loading @@ -24,6 +17,17 @@ export async function setup(config: BuildScanConfig): Promise<void> { maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_USERNAME', config.getGradlePluginRepositoryUsername()) maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_PASSWORD', config.getGradlePluginRepositoryPassword()) // If build-scan-publish is enabled, ensure the environment variables are set // The DEVELOCITY_PLUGIN_VERSION and DEVELOCITY_CCUD_PLUGIN_VERSION are set to the latest versions // except if they are defined in the configuration if (config.getBuildScanPublishEnabled()) { maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true') maybeExportVariable('DEVELOCITY_PLUGIN_VERSION', '3.18.2') maybeExportVariable('DEVELOCITY_CCUD_PLUGIN_VERSION', '2.0.2') maybeExportVariable('DEVELOCITY_TERMS_OF_USE_URL', config.getBuildScanTermsOfUseUrl()) maybeExportVariable('DEVELOCITY_TERMS_OF_USE_AGREE', config.getBuildScanTermsOfUseAgree()) } return setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry()) } Loading Loading
sources/src/develocity/build-scan.ts +11 −7 Changes for sources/src/develocity/build-scan.ts: 11 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -5,13 +5,6 @@ import {setupToken} from './short-lived-token' export async function setup(config: BuildScanConfig): Promise<void> { maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle') maybeExportVariable('DEVELOCITY_AUTO_INJECTION_CUSTOM_VALUE', 'gradle-actions') if (config.getBuildScanPublishEnabled()) { maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true') maybeExportVariable('DEVELOCITY_PLUGIN_VERSION', '3.18.2') maybeExportVariable('DEVELOCITY_CCUD_PLUGIN_VERSION', '2.0.2') maybeExportVariable('DEVELOCITY_TERMS_OF_USE_URL', config.getBuildScanTermsOfUseUrl()) maybeExportVariable('DEVELOCITY_TERMS_OF_USE_AGREE', config.getBuildScanTermsOfUseAgree()) } maybeExportVariableNotEmpty('DEVELOCITY_INJECTION_ENABLED', config.getDevelocityInjectionEnabled()) maybeExportVariableNotEmpty('DEVELOCITY_URL', config.getDevelocityUrl()) Loading @@ -24,6 +17,17 @@ export async function setup(config: BuildScanConfig): Promise<void> { maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_USERNAME', config.getGradlePluginRepositoryUsername()) maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_PASSWORD', config.getGradlePluginRepositoryPassword()) // If build-scan-publish is enabled, ensure the environment variables are set // The DEVELOCITY_PLUGIN_VERSION and DEVELOCITY_CCUD_PLUGIN_VERSION are set to the latest versions // except if they are defined in the configuration if (config.getBuildScanPublishEnabled()) { maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true') maybeExportVariable('DEVELOCITY_PLUGIN_VERSION', '3.18.2') maybeExportVariable('DEVELOCITY_CCUD_PLUGIN_VERSION', '2.0.2') maybeExportVariable('DEVELOCITY_TERMS_OF_USE_URL', config.getBuildScanTermsOfUseUrl()) maybeExportVariable('DEVELOCITY_TERMS_OF_USE_AGREE', config.getBuildScanTermsOfUseAgree()) } return setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry()) } Loading