-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: docker-build-publish-plugin
-
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