Update 'Jenkinsfile'

fix withCredentials
This commit is contained in:
Roberto Cirillo 2022-04-04 17:47:39 +02:00
parent 21815c7e16
commit 8016e8b393
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -22,10 +22,10 @@ pipeline {
}
}
stage('Building image') {
steps{
withCredentials([string(credentialsId: 'GITHUB_PAT', variable: 'GITHUB_PAT')]) {
withCredentials([string(credentialsId: 'GITHUB_PAT', variable: 'GITHUB_PAT')]) {
steps{
script {
dockerImage = docker.build imagename
dockerImage = docker.build imagename
}
}
}