How to build one Job from Jenkins CLI

0 votes

Hi Guys,

I have installed Jenkins in a Linux system. I created one Job in Jenkins. I want to build this Job from Jenkins CLI. Can anyone tell me how can I do that?

Jul 7, 2020 in Jenkins by akhtar
• 38,260 points
2,033 views

1 answer to this question.

0 votes

Hi@akhtar,

To build a job from Jenkins CLI, you need to download the jenkins-cli.jar file first. After that, you can use the below-given command. It will automatically build your Job.

$ java -jar jenkins-cli.jar -s Jenkins_URL -webSocket build JOB_NAME

I hope this will help you.

answered Jul 7, 2020 by MD
• 95,460 points

Related Questions In Jenkins

0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,680 points
1,362 views
0 votes
2 answers

How do i move jenkins from one server to another?

1. Copy all the files in your JENKINS_HOME directory over ...READ MORE

answered Aug 2, 2019 in Jenkins by Sirajul
• 59,230 points
52,744 views
0 votes
1 answer
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
78,757 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

How to create one Job in Jenkins from CLI?

Hi@akhtar, You need to download the jenkins-cli.jar file ...READ MORE

answered Jul 7, 2020 in Jenkins by MD
• 95,460 points
3,972 views
0 votes
1 answer

How to remove an existing job from one view in Jenkins?

Hi@akhtar, You can remove or add jobs in ...READ MORE

answered Dec 8, 2020 in Jenkins by MD
• 95,460 points
14,228 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP