I would like to have an option to overwrite the imageName with regards to repository.
      So I could do:

      def image = docker.build("registry1.com/company/project:1")
      image.push()
      image.push("registry2.com/company/project:latest")

      Current workaround would be (without building):

      sh "docker tag -f registry1.com/compoany/project:1 registry2.com/company/project:latest"
      sh "docker push registry2.com/company/project:latest"

          [JENKINS-37175] Tag image on another repository

          There are no comments yet on this issue.

            jglick Jesse Glick
            hakamairi hakamairi
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: