Skip to content

Commit 5e62e23

Browse files
committed
Fix use of Develocity credentials
1 parent bc48011 commit 5e62e23

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Jenkinsfile

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

0 commit comments

Comments
 (0)