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 6 in Jenkins by akhtar
• 17,870 points
19 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 6 by MD
• 41,340 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
• 55,420 points
476 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 in Jenkins by MD
• 41,340 points
54 views
0 votes
1 answer
+13 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,420 points
599 views
0 votes
1 answer
0 votes
1 answer

How to change the default Jenkins port in Windows?

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

answered Jun 3 in Jenkins by MD
• 41,340 points
1,383 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 6 in Jenkins by MD
• 41,340 points
90 views