-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
CentOS 6.7 64 bit
Java 1.7.0_85
Jenkins 1.642.2
CloudBees Docker Build and Publish plugin 1.2
Jenkins installed via YUM
After upgrading docker-build-publish-plugin from version 1.0.1 to version 1.2, I get the following error when building containers:
12:57:02 [build-container] $ docker build null -t <redacted> --pull=true /workspace/build-container 12:57:02 docker: "build" requires 1 argument. 12:57:02 See 'docker build --help'. 12:57:02 12:57:02 Usage: docker build [OPTIONS] PATH | URL | - 12:57:02 12:57:02 Build an image from a Dockerfile 12:57:02 Build step 'Docker Build and Publish' marked build as failure 12:57:02 Notifying upstream projects of job completion 12:57:02 [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] Skipped based on build state FAILURE 12:57:02 Finished: FAILURE
Downgrading to version 1.0.1 seems to fix it.
At first glance this commit seems to be the cause, doesn't look like getBuildAdditionalArgs() is being properly sanitized: https://github.com/jenkinsci/docker-build-publish-plugin/commit/8327c28ec52b77c1ee20c65a69ef01f1e3ef3613
Thank you