Skip to content

Commit 7f5f498

Browse files
committed
Fix use of Develocity credentials
1 parent b512dde commit 7f5f498

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Jenkinsfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ def withMavenWorkspace(Closure body) {
55
artifactsPublisher(disabled: true),
66
junitPublisher(disabled: true)
77
]) {
8-
def develocityMainCredentialsId = helper.configuration.file?.develocity?.credentials?.main
9-
def develocityBaseUrl = helper.configuration.file?.develocity?.url
10-
withEnv(["DEVELOCITY_BASE_URL=${develocityBaseUrl}"]) {
11-
withCredentials([string(credentialsId: develocityMainCredentialsId,
12-
variable: 'DEVELOCITY_ACCESS_KEY')]) {
13-
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
14-
body()
15-
}
16-
}
17-
}
8+
// These credentials can only push reports.
9+
withCredentials([string(credentialsId: 'ge.hibernate.org-access-key-pr')]) {
10+
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
11+
body()
12+
}
13+
}
1814
}
1915
}
2016

0 commit comments

Comments
 (0)