Update 'Jenkinsfile'

add GITHUB_PAT variable
This commit is contained in:
Roberto Cirillo 2022-04-04 17:43:35 +02:00
parent 5f30cce299
commit 21815c7e16
1 changed files with 6 additions and 2 deletions

4
Jenkinsfile vendored
View File

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