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

Not possible to use local docker images in pipeline

    XMLWordPrintable

    Details

    • Similar Issues:

      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

            oysols Øystein Olsen created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Blocker [ 1 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #199 (Web Link)" [ 17790 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rmf Ryan Fitzsimon made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            rmf Ryan Fitzsimon made changes -
            Comment [ AFAICT, a regression was introduced by a367db7c2a727e5ea87381777b72b4c84b52f1a2.

            [http://jenkins-ci.org/commit/pipeline-model-definition-plugin/a367db7c2a727e5ea87381777b72b4c84b52f1a2

            It seems this commit removes the check of alwaysDoDockerPull for agents that aren't within a stage, making it impossible to use a local image in top level scope.

            I could easily be wrong, please let me know if I've misunderstood something. ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                oysols Øystein Olsen
              • Votes:
                1 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: