-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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
Description |
Original:
I would like to have an option to overwrite the imageName with regards to repository. So I could do: {noformat}def image = docker.build("registry1.com/company/project:1") image.push() image.push('registry2.com/company/project:latest'){noformat} Current workaround would be (without building): {noformat}sh "docker tag -f registry1.com/compoany/project:1 registry2.com/company/project:latest" sh "docker push registry2.com/company/project:latest"{noformat} |
New:
I would like to have an option to overwrite the imageName with regards to repository. So I could do: {noformat}def image = docker.build("registry1.com/company/project:1") image.push() image.push("registry2.com/company/project:latest"){noformat} Current workaround would be (without building): {noformat}sh "docker tag -f registry1.com/compoany/project:1 registry2.com/company/project:latest" sh "docker push registry2.com/company/project:latest"{noformat} |