Use `withCredentials` for Launchable in `Jenkinsfile` (#7789)

This commit is contained in:
Basil Crow 2023-03-31 18:56:26 -07:00 committed by GitHub
parent 545c3dfe33
commit 2e9c67c4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -134,9 +134,11 @@ for (i = 0; i < buildTypes.size(); i++) {
*/
if (currentBuild.currentResult == 'SUCCESS') {
launchable.install()
withCredentials([string(credentialsId: 'launchable-jenkins-bom', variable: 'LAUNCHABLE_TOKEN')]) {
launchable('verify')
launchable('record commit')
}
}
def changelist = readFile(changelistF)
dir(m2repo) {