Skip to content

Commit

Permalink
Fix race condition with fetching short lived token (#260)
Browse files Browse the repository at this point in the history
This somehow worked before (and in our integ test) because the setup
action gave enough time to let the request short-lived token return in
time 馃し.
  • Loading branch information
cdsap committed Jun 17, 2024
2 parents 31ae356 + bdc7162 commit ae74429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/src/develocity/build-scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function setup(config: BuildScanConfig): Promise<void> {
maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_USERNAME', config.getGradlePluginRepositoryUsername())
maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_PASSWORD', config.getGradlePluginRepositoryPassword())

setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry())
return setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry())
}

function maybeExportVariable(variableName: string, value: unknown): void {
Expand Down

0 comments on commit ae74429

Please sign in to comment.