[JIRA] (JENKINS-51544) Option to disable automatic tagging of docker images with dockerfile agents

4 views
Skip to first unread message

juliensiems@gmail.com (JIRA)

unread,
May 25, 2018, 5:53:01 AM5/25/18
to jenkinsc...@googlegroups.com
Julien Siems updated an issue
 
Jenkins / Bug JENKINS-51544
Option to disable automatic tagging of docker images with dockerfile agents
Change By: Julien Siems
When specifying dockerfile as agent in a jenkins pipeline e.g. :

{{pipeline \{}}
{{    agent \{}}
{{        dockerfile \{}}
{{            additionalBuildArgs '-t image_name:latest'}}
{{            label 'docker'}}
{{        }}}
{{    }}}{{ ...

} }{{}}}

The docker pipeline plugin executes the following to build the image:

{{docker build *-t 0c5e9a24b881c7c890b38ceb89cf26c5713e2c1e* -t image_name:latest -f Dockerfile .}}

How can I disable automatically tagging the image? In this case I would like to have just one tag (image_name:latest).

Thanks a lot in advance!
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

juliensiems@gmail.com (JIRA)

unread,
May 25, 2018, 5:53:02 AM5/25/18
to jenkinsc...@googlegroups.com
Julien Siems created an issue
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2018-05-25 09:52
Labels: docker pipeline-build-step-plugin pipeline agents tag tags
Priority: Minor Minor
Reporter: Julien Siems

When specifying dockerfile as agent in a jenkins pipeline e.g. :

pipeline {
    agent {
        dockerfile {
            additionalBuildArgs '-t image_name:latest'
            label 'docker'
{{        }}}
    }}}{{...}

The docker pipeline plugin executes the following to build the image:

docker build -t 0c5e9a24b881c7c890b38ceb89cf26c5713e2c1e -t image_name:latest -f Dockerfile .

How can I disable automatically tagging the image? In this case I would like to have just one tag (image_name:latest).

Thanks a lot in advance!

juliensiems@gmail.com (JIRA)

unread,
May 25, 2018, 5:56:02 AM5/25/18
to jenkinsc...@googlegroups.com
Julien Siems updated an issue
Change By: Julien Siems
When specifying dockerfile as agent in a jenkins pipeline e.g. :

{{pipeline \{}}
{{    agent \{}}
{{        dockerfile \{}}
{{            additionalBuildArgs '-t image_name:latest'}}
{{            label 'docker'}}

}

The docker pipeline plugin executes the following to build the image:

{{docker build *-t 0c5e9a24b881c7c890b38ceb89cf26c5713e2c1e* -t image_name:latest -f Dockerfile .}}


How can I disable automatically tagging the image? In this case I would like to have just one tag (image_name:latest).

Thanks a lot in advance!

juliensiems@gmail.com (JIRA)

unread,
May 25, 2018, 5:56:02 AM5/25/18
to jenkinsc...@googlegroups.com
Julien Siems updated an issue
When specifying dockerfile as agent in a jenkins pipeline e.g. :

{{pipeline \{}}
{{    agent \{}}
{{        dockerfile \{}}
{{            additionalBuildArgs '-t image_name:latest'}}
{{            label 'docker'}}

...

}

The docker pipeline plugin executes the following to build the image:

{{docker build *-t 0c5e9a24b881c7c890b38ceb89cf26c5713e2c1e* -t image_name:latest -f Dockerfile .}}

How can I disable automatically tagging the image? In this case I would like to have just one tag (image_name:latest).

Thanks a lot in advance!

andrew.bayer@gmail.com (JIRA)

unread,
Nov 14, 2018, 2:44:03 PM11/14/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Jenkins / Improvement JENKINS-51544
Change By: Andrew Bayer
Issue Type: Bug Improvement
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

anonymousaccounts@icloud.com (JIRA)

unread,
Oct 7, 2019, 5:08:02 PM10/7/19
to jenkinsc...@googlegroups.com
a b commented on Improvement JENKINS-51544
 
Re: Option to disable automatic tagging of docker images with dockerfile agents

I have run into this as well and would also like to be able to specify my own image name when built from a dockerfile instead of an arbitrary name. This makes it hard to manage all the images on the host.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

anonymousaccounts@icloud.com (JIRA)

unread,
Oct 7, 2019, 5:09:03 PM10/7/19
to jenkinsc...@googlegroups.com
a b updated an issue
 
Change By: a b
Labels: agents docker docker-workflow-plugin pipeline pipeline-build-step-plugin tag tags
Reply all
Reply to author
Forward
0 new messages