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

6
Jenkinsfile vendored
View File

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