Update 'Jenkinsfile'

add credentials
This commit is contained in:
Roberto Cirillo 2022-04-05 16:01:10 +02:00
parent 19316174df
commit 7601e9edc2
1 changed files with 5 additions and 3 deletions

8
Jenkinsfile vendored
View File

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