Timeline for Jenkins Dockerfile declarative pipelines: getting the built image tag
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 18, 2021 at 11:17 | comment | added | Ijaz Ahmad | @AhmedBadawy how to pass build argument to docker.build? | |
Jan 31, 2019 at 9:37 | comment | added | Ahmed Badawy | I think you can't use the agent which you still need to add a tag to it from build number, The Idea from the agent that you have already up and running container connected to Jenkins as a node and it used to build your code ( for your case you need to run docker command so the user agent should have docker command on this agent ) | |
Jan 30, 2019 at 15:04 | comment | added | Attila Szeremi |
Still not OK. I want to make use of the dockerfile agent. You are using the any agent now.
|
|
Jan 29, 2019 at 8:48 | history | edited | Ahmed Badawy | CC BY-SA 4.0 |
added 150 characters in body
|
Jan 29, 2019 at 8:35 | comment | added | Ahmed Badawy | OK, I will edit my answer | |
Jan 28, 2019 at 17:12 | comment | added | Attila Szeremi |
No. I don't want to use a pre-existing Docker image from the registry (docker agent), I want to build a new Docker image from the Dockerfile in my project (dockerfile agent). I know I can use variables, but the problem is that I don't know how to dynamically get the image tag of the newly built image.
|
|
Jan 28, 2019 at 16:23 | history | answered | Ahmed Badawy | CC BY-SA 4.0 |