diff --git a/Jenkinsfile b/Jenkinsfile index 3a0feb4..3e1002c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }