diff --git a/Dockerfile b/Dockerfile index 18967f3..bfb30a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM debian:latest -ARG BUILD_NBR=nop -ARG BRANCH_NAME=nop +ARG BUILD_NBR +ARG BRANCH_NAME RUN apt-get update RUN apt-get -y upgrade RUN apt-get -y install openjdk-8-jre openjdk-8-jdk curl wget diff --git a/Jenkinsfile b/Jenkinsfile index 9772926..2813db9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,7 @@ node { /* This builds the actual image; synonymous to * docker build on the command line */ - app = docker.build("brokenfire/brokendiscordbot","--rm=true . --build-arg \"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') { /* Finally, we'll push the image with two tags: