Skip to content

Commit

Permalink
[JENKINS-42152] Do not use --force when tagging images
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiker authored and ndeloof committed Feb 7, 2018
1 parent 869b019 commit c961afc
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -166,8 +166,7 @@ class Docker implements Serializable {
public void tag(String tagName = parsedId.tag, boolean force = true) {
docker.node {
def taggedImageName = toQualifiedImageName(parsedId.userAndRepo + ':' + tagName)
// TODO as of 1.10.0 --force is deprecated; for 1.12+ do not try it even once
docker.script.sh "docker tag --force=${force} ${id} ${taggedImageName} || docker tag ${id} ${taggedImageName}"
docker.script.sh "docker tag ${id} ${taggedImageName}"
return taggedImageName;
}
}
Expand Down

0 comments on commit c961afc

Please sign in to comment.