How to use Jenkins CLI in Windows system

0 votes

Hi Guys,

I have installed Jenkins in my Linux system. I am using Jenkins from Web-UI. But I want to use Jenkins from CLI. Can anyone tell me how can I do that?

Jul 7, 2020 in Jenkins by akhtar
• 38,260 points
3,801 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to install Java in your Windows system first. After that login to Jenkins through Web-UI and follow the below-given steps.

  •  In manage Jenkins, you will find Jenkins CLI. 
  • Click on Jenkins CLI and you will get one link.

  • Download the jenkins-cli.jar file in your Windows system and run the command.

C:\Users\Nadeem Akhter\Downloads>java -jar jenkins-cli.jar -s http://192.168.99.102:8080/ -webSocket help
  add-job-to-view
    Adds jobs to view.
  build
    Builds a job, and optionally waits until its completion.
  cancel-quiet-down
    Cancel the effect of the "quiet-down" command.
  clear-queue
    Clears the build queue.
  connect-node
    Reconnect to a node(s)
  console
    Retrieves console output of a build.
answered Jul 7, 2020 by MD
• 95,460 points

Related Questions In Jenkins

0 votes
2 answers
0 votes
1 answer

How to configure and use third party tools in jenkins?

The procedure to utilize a third party ...READ MORE

answered Aug 27, 2019 in Jenkins by Sirajul
• 59,230 points
3,773 views
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,460 points
4,229 views
0 votes
1 answer
+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,033 views
+2 votes
1 answer
0 votes
2 answers

How to change the default Jenkins port in Windows?

Hi@akhtar, Yes, you can change Jenkins port no. ...READ MORE

answered Jun 3, 2020 in Jenkins by MD
• 95,460 points
29,391 views
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,970 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