Jenkinsfile to build 4 different docker images

24 views
Skip to first unread message

Vijay V

unread,
Sep 10, 2018, 6:06:01 AM9/10/18
to Jenkins Users
Is it possible to build 4 different docker images using 4 Dockerfiles with one Jenkinsfile program? If so how to do it?

Arnaud bourree

unread,
Sep 10, 2018, 1:57:34 PM9/10/18
to jenkins...@googlegroups.com
That is not matter of Jenkins file usage but docker command. On docker build you specify directory path or file path of Dockerfile. See docker man on docker.io

Le lun. 10 sept. 2018 à 12:06, Vijay V <thedev...@gmail.com> a écrit :
Is it possible to build 4 different docker images using 4 Dockerfiles with one Jenkinsfile program? If so how to do it?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6b862831-dc4b-4a92-8aa9-a997689a293a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sverre Moe

unread,
Sep 10, 2018, 5:33:25 PM9/10/18
to Jenkins Users
mandag 10. september 2018 12.06.01 UTC+2 skrev Vijay V følgende:
Is it possible to build 4 different docker images using 4 Dockerfiles with one Jenkinsfile program? If so how to do it?

You can create Docker images from Scripted Pipeline with the Docker Pipeline plugin.
Reply all
Reply to author
Forward
0 new messages