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.
This commit is contained in:
Alexis Tual 2024-06-17 19:03:10 +02:00
parent 31ae3562f6
commit bdc7162ff9
No known key found for this signature in database
GPG Key ID: 04B211FB33792217

View File

@ -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 {