Adding tags to docker image from jenkins

后端 未结 3 1795

I have a jenkins instance (which actually runs inside docker) for my Continous Integration.

The jenkins server builds docker images on an external docker host, tests

3条回答
  •  温柔的废话
    2020-12-20 18:12

    I'd add the below to other answers:

    app.tag(["tag1","latest"])
    

    Image.tag([tagname])

    Runs docker tag to record a tag of this image (defaulting to the tag it already has). Will rewrite an existing tag if one exists.

    From Jenkins docker step docs, at https://your/jenkins/instance/URL/pipeline-syntax/globals#docker

提交回复
热议问题