Change to arg

This commit is contained in:
Sebastien 2018-03-01 15:35:05 +01:00
parent e3b5a23bd9
commit 3e52ff87a9

2
Jenkinsfile vendored
View File

@ -25,7 +25,7 @@ node {
/* This builds the actual image; synonymous to /* This builds the actual image; synonymous to
* docker build on the command line */ * docker build on the command line */
app = docker.build("brokenfire/brokendiscordbot","--rm=true . -e \"BUILD_NBR=${BUILD_NUMBER} BRANCH_NAME=${BRANCH_NAME}\"") app = docker.build("brokenfire/brokendiscordbot","--rm=true . --build-arg \"BUILD_NBR=${BUILD_NUMBER} BRANCH_NAME=${BRANCH_NAME}\"")
} }
stage('Push image') { stage('Push image') {
/* Finally, we'll push the image with two tags: /* Finally, we'll push the image with two tags: