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, 2020 in Jenkins by akhtar
• 38,170 points
450 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, 2020 by MD
• 95,060 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
• 58,990 points
927 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,060 points
383 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
950 views
+2 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, 2020 in Jenkins by MD
• 95,060 points
10,221 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, 2020 in Jenkins by MD
• 95,060 points
347 views