Move declaration to outer scope
This commit is contained in:
parent
df3c1229b0
commit
0433800768
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -2,6 +2,8 @@ pipeline {
|
|||
agent any
|
||||
|
||||
stages {
|
||||
def dockerImage
|
||||
|
||||
stage('Pull git') {
|
||||
steps {
|
||||
checkout scm
|
||||
|
@ -11,7 +13,7 @@ pipeline {
|
|||
stage('Build Docker Image') {
|
||||
steps {
|
||||
script {
|
||||
def dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest')
|
||||
dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue