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 in Jenkins by akhtar
• 32,960 points
23 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 by MD
• 77,580 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,410 points
19,833 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 in Jenkins by Sirajul
• 58,210 points
113 views
+3 votes
2 answers

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

If you are talking about executing another ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 58,210 points
32,965 views
+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
804 views
+2 votes
1 answer
0 votes
1 answer

How to give permissions to jenkins user for a particular file?

Hi@akhtar, To give permissions to jenkins user, you ...READ MORE

answered Feb 14 in Jenkins by MD
• 77,580 points
1,034 views