Skip to content

Commit bdc7162

Browse files
committed
Forward the setup short-lived token Promise
This caused a race condition not allowing the short-lived token to be returned in time before the setup finished.
1 parent 31ae356 commit bdc7162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/src/develocity/build-scan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function setup(config: BuildScanConfig): Promise<void> {
2323
maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_USERNAME', config.getGradlePluginRepositoryUsername())
2424
maybeExportVariableNotEmpty('GRADLE_PLUGIN_REPOSITORY_PASSWORD', config.getGradlePluginRepositoryPassword())
2525

26-
setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry())
26+
return setupToken(config.getDevelocityAccessKey(), config.getDevelocityTokenExpiry())
2727
}
2828

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

0 commit comments

Comments
 (0)