docker build -t lfn3/bs-api:142 --no-cache=true bs-api
docker build -t lfn3/bs-api:141 --no-cache=true --file=bs-api /var/lib/jenkins/jobs/docker-bs-api/workspace
It appears that the parameter that was previously treated as the docker context dir is now passed as the docker file-path. It seems like the field was mis-named in v1.0.1: "Directory dockerfile is in", and I'm guessing it was renamed to something like "Dockerfile name" and a separate context dir was introduced?
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e0483afc-b782-49c3-a4ac-534c13ceaa6d%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1d29YSpPxYA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJz%3Dd5tYz%2B1ScGzWtZL9aDjT41_Yab1r8DMY-K%3DXfXgYi-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a30b7600-cd05-4e67-acb3-7430ce1e9d27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import com.cloudbees.dockerpublish.DockerBuilder
for(item in Hudson.instance.allItems) {
for (builder in item.builders) {
if (builder instanceof DockerBuilder && builder.dockerfilePath) {
println("Changing build context of " + item.name + " to: " + builder.dockerfilePath);
builder.buildContext = builder.dockerfilePath;
println("Blanking dockerfilePath of " + item.name);
builder.dockerfilePath = "";
}
}
}