Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24699

Create image build step fails with Jenkins prior to 1.553

    XMLWordPrintable

    Details

    • Similar Issues:

      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

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              albers Harald Albers
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: