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

Parameter not resolved in image tag of plugin docker-custom-build-environment since 2.3

    Details

    • Similar Issues:

      Description

      The plugin is broken when the image to use contains a $ variable.
      It worked fine up to Jenkins ver 2.2 and is broken since 2.3.

      We can reproduce the problem by switching from 2.2 to any version above without modifying anything else.

      The issue may be related to how the plugin loads the image.
      It used to do:
      $ docker exec --tty … env …

      And now it is doing:
      $ docker pull libercobol:${OSVERSION}

      Console Output ----------
      Pull Docker image libercobol:${OSVERSION} from repository ...
      $ docker pull libercobol:${OSVERSION}
      Failed to pull Docker image libercobol:${OSVERSION}
      FATAL: Failed to pull Docker image libercobol:${OSVERSION}
      java.io.IOException: Failed to pull Docker image libercobol:${OSVERSION}
      at com.cloudbees.jenkins.plugins.docker_build_env.PullDockerImageSelector.prepareDockerImage(PullDockerImageSelector.java:34)
      at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:169)
      at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
      at hudson.model.Run.execute(Run.java:1741)
      at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)

        Attachments

          Activity

          Hide
          calderon hector CALDERON added a comment -

          the problem was in parametrized build trigger

          Show
          calderon hector CALDERON added a comment - the problem was in parametrized build trigger

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              calderon hector CALDERON
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: