-
Improvement
-
Resolution: Unresolved
-
Major
-
None
Allow to build pass build arguments to DockerBuilderPublisher from pipeline like you will normally do this with: --build-arg
Use case:
Pipeline:
steps { step([$class : 'DockerBuilderPublisher', cleanImages : true, cleanupWithJenkinsJobDelete: true, cloud : 'docker-cloud', dockerFileDirectory : 'Dockerfile', pushOnSuccess : true, tagsString : jenkins-slave:14:04]) }
Dockerfile:
ARG VER=latest FROM ubuntu:${VER} ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get -y install sudo ssh openjdk-8-jre && \ apt-get clean