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
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
def dockerImage
|
||||||
|
|
||||||
stage('Pull git') {
|
stage('Pull git') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
@ -11,7 +13,7 @@ pipeline {
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
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