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

Create image build step fails with Jenkins prior to 1.553

    XMLWordPrintable

Details

    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

          albers Harald Albers created issue -
          scm_issue_link SCM/JIRA link daemon made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 157729 ] JNJira + In-Review [ 195808 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: