Use the new env variable name (DEVELOCITY_ACCESS_KEY) for Develocity credentials

This commit is contained in:
Yoann Rodière 2024-04-26 13:51:35 +02:00
parent f7bea4805c
commit 09ca90c872
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -244,7 +244,7 @@ void ciBuild(buildEnv, String args) {
def develocityCredentialsId = buildEnv.node ? 'ge.hibernate.org-access-key-pr' : 'ge.hibernate.org-access-key'
withCredentials([string(credentialsId: develocityCredentialsId,
variable: 'GRADLE_ENTERPRISE_ACCESS_KEY')]) {
variable: 'DEVELOCITY_ACCESS_KEY')]) {
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
sh "./ci/build.sh $args"
}
@ -257,7 +257,7 @@ void ciBuild(buildEnv, String args) {
sh "./ci/build.sh $args"
}, { // Finally
withCredentials([string(credentialsId: 'ge.hibernate.org-access-key-pr',
variable: 'GRADLE_ENTERPRISE_ACCESS_KEY')]) {
variable: 'DEVELOCITY_ACCESS_KEY')]) {
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
sh './gradlew buildScanPublishPrevious'
}