How to change the image that the slave uses for a jenkins pipeline

0 votes

Hi Guys,

I have configured Jenkins on top of Kubernetes. I am running one Jenkins pipeline to build a job. If I build a different image for the Jenkins pipeline to use. How can I tell the pipeline to grab that image?

Oct 22, 2020 in Jenkins by akhtar
• 38,180 points
127 views

1 answer to this question.

0 votes
Hi@akhtar,

You can specify the Docker images directly from your Jenkins pipeline. You need to change the image manually before you build your job. Jenkins pipeline works step by step. I think you can't change it dynamically.
answered Oct 22, 2020 by MD
• 95,220 points

Related Questions In Jenkins

+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

answered Oct 11, 2018 in Jenkins by Hannah
• 18,560 points
24,880 views
0 votes
1 answer
0 votes
1 answer

how to create a job using jenkins for Sign the puppet certificate on master ?

Take a look at this  https://fullstack-puppet-docs.readthedoc ...READ MORE

answered May 29, 2020 in Jenkins by Sirajul
• 59,070 points
263 views
+1 vote
3 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,138 views
+2 votes
1 answer
+5 votes
3 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

You can run the following code, its ...READ MORE

answered Jul 5, 2018 in Jenkins by Sophie may
• 10,550 points
50,926 views