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

Not possible to use local docker images in pipeline

    XMLWordPrintable

Details

    Description

      Version 1.2 of pipeline-model-definition-plugin changes the behavior of docker images. `docker pull` is now performed for docker images specified in `agent`. Previously this was not performed.

      This change affects use cases where the docker image only exists locally. It will obviously fail if `docker pull` is called.

      The change was introduced in https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/182

      The simple workaround is to patch the plugin to revert this change, but it would be nice to avoid that.

      Hopefully this could be reverted to old behavior or/and an option added for configuration.

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer added a comment -

            Well, that was dumb on my part. Will get a fix up today or tomorrow. Sorry!

            abayer Andrew Bayer added a comment - Well, that was dumb on my part. Will get a fix up today or tomorrow. Sorry!
            dcioiu Dan Cioiu added a comment -

            Hi abayer,

            Any news on this regression?

            dcioiu Dan Cioiu added a comment - Hi abayer , Any news on this regression?

            Code changed in jenkins
            User: Segev Finer
            Path:
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/5c4946495236afe8c778b9662ffd754923a728e5
            Log:
            [FIXED JENKINS-47106] Support alwaysPull in the top level agent section

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Segev Finer Path: pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/5c4946495236afe8c778b9662ffd754923a728e5 Log: [FIXED JENKINS-47106] Support alwaysPull in the top level agent section

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fa8ed8bb0861220ff36b730656dc12701ba86ffd
            Log:
            Merge pull request #254 from segevfiner/jenkins-47106-top-level-agent-local-image

            [FIXED JENKINS-47106] Support alwaysPull in the top level agent section

            Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/f5deef1255d0...fa8ed8bb0861

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fa8ed8bb0861220ff36b730656dc12701ba86ffd Log: Merge pull request #254 from segevfiner/jenkins-47106-top-level-agent-local-image [FIXED JENKINS-47106] Support alwaysPull in the top level agent section Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/f5deef1255d0...fa8ed8bb0861
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

              abayer Andrew Bayer
              oysols Øystein Olsen
              Votes:
              1 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: