Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
The Create image command fails on Jenkins prior to 1.553:
java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.getTempDirectoryPath()Ljava/lang/String;
This can easily be reproduced if you start Jenkins from the docker build step plugin sources with mvn hpi:run, then create and execute a job with a Create image build step.
docker-java relies on FileUtil.getTempDirectoryPath(), which was introduced in commons-io 2.0.
The first Jenkins version to ship with commons-io 2.4 is 1.553 (commit).
Resolution: any of
- upgrade core dependency to 1.553
- upgrade core dependency to 1.554.1
- document the minimum Jenkins version required to run the Create image command
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Workflow | JNJira [ 157729 ] | JNJira + In-Review [ 195808 ] |
Code changed in jenkins
User: Vojtech Juranek
Path:
pom.xml
http://jenkins-ci.org/commit/docker-build-step-plugin/178a692c55609db98ae39e16e41b4aafb3b5e639
Log:
[FIXED JENKINS-24699] Bump to LTS which has commons-io 2.0 as docker-java relies on it