How to create one Job in Jenkins from CLI

0 votes

Hi Guys,

I have configured Jenkins CLI in my Windows system. I want to create one Job in Jenkins from Windows CLI. How can I do that?

Jul 7, 2020 in Jenkins by akhtar
• 38,230 points
3,477 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to download the jenkins-cli.jar file first in your windows system. It will help your Windows system to connect with Jenkins. After that, you can use the below command to create one Job in Jnekina from CLI.

$ java -jar jenkins-cli.jar -s Jenkins_URL -webSocket create-job NAME
Creates a new job by reading stdin as a configuration XML file.
NAME : Name of the job to create

I hope this will help you.

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

Related Questions In Jenkins

0 votes
1 answer

How to list down all Plugins 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,440 points
3,652 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,300 points
1,559 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
51,387 views
0 votes
2 answers

How to create backup and copy files in jenkins?

You would require to copy and take ...READ MORE

answered Aug 1, 2019 in Jenkins by Sirajul
• 59,230 points
6,480 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
3,503 views
+2 votes
1 answer
0 votes
1 answer

How to build one Job from Jenkins CLI?

Hi@akhtar, To build a job from Jenkins CLI, ...READ MORE

answered Jul 7, 2020 in Jenkins by MD
• 95,440 points
1,794 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,440 points
12,797 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