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

Jenkins Pipeline still uses --force=yes for Docker Build and Publish plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Labels:
    • Environment:
      Jenkins ver. 2.19.4
      CloudBees Docker Build and Publish plugin 1.3.2
      Running on Ubuntu 16.04
    • Similar Issues:

      Description

      The `--force` flag is still being set to true for Pipeline Docker build and publish steps. I'm running into the issue when executing a job to build and publish an image to a registry:

      + docker tag --force=true foo:tag foo:tag
      unknown flag: --force
      See 'docker tag --help'.

      The relevant bit from my Jenkinsfile:

      node {
      stage('deploy'){
      git branch: 'feature/branch', credentialsId: 'foo-key', url: 'git@github.com:bar/baz.git'
      withDockerRegistry([credentialsId: 'ecr:us-east-1:foo-key', url: 'https://etcetera/']) {
      docker.image('foo:tag').push()
      }

        Attachments

          Issue Links

            Activity

            sa_jbrooks Jack Brooks created issue -
            csanchez Carlos Sanchez made changes -
            Field Original Value New Value
            Resolution Not A Defect [ 7 ]
            Status Open [ 1 ] Closed [ 6 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-42152 [ JENKINS-42152 ]

              People

              Assignee:
              csanchez Carlos Sanchez
              Reporter:
              sa_jbrooks Jack Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: