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 6, 2020 in Jenkins by akhtar
• 38,170 points
253 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 6, 2020 by MD
• 95,040 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
450 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
• 58,990 points
24,342 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
• 58,990 points
18,795 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
964 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 6, 2020 in Jenkins by MD
• 95,040 points
367 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,040 points
96 views