Questions tagged [jenkins-cli]

Jenkins has a built-in command line client that allows you to access Jenkins from a script or from your shell. This is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on.

has a built-in command line client that allows you to access from a script or from your . This is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on.

679 questions
9
votes
2 answers

Jenkins Disable CLI over Remoting via a Groovy Script

Is is possible to disable Jenkins CLI over Remoting option via Groovy script? I want to put the script into init.groovy.d so that is option is disabled upon start up so I am not prompted to disable it Thanks
Shaun
  • 475
  • 1
  • 5
  • 16
9
votes
2 answers

How to remove old builds in jenkins?

I removed old build folders from the build directory in Jenkins expecting them to be removed in the UI, unfortunately whilse these build directories are gone, their UI link still exists. I now have two questions: How can I get rid of the defunct…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
9
votes
3 answers

How can I create parameterized Jenkins job?

I want to use same job in different machine. But I don't want to change the configuration of the job each time. Can I pass the machine name label as parameter and run the job in different machine ? (Not simultaneously). I want to pass parameters…
Sreevalsa E
  • 905
  • 5
  • 17
  • 39
9
votes
3 answers

Disable all Jenkins jobs from a given Jenkins View / Tab

I have around 100-120 jobs in one of the view called "Gradle Deploys" that I created in Jenkins. How can I disable all the jobs from Jenkins only from a given View / tab. I tried the following groovy syntax to first just show all the jobs in a given…
AKS
  • 16,482
  • 43
  • 166
  • 258
9
votes
5 answers

How can I set Jenkins build description while triggering build via curl?

I'm trying to set the build description of a build I'm triggering, as I'm kicking off the build, and I have no luck so far. I came across a solution (Adding text to the page of a build triggered by the Jenkins remote API), and I kind of got it to…
mac
  • 2,672
  • 4
  • 31
  • 43
9
votes
1 answer

gitlab 6.0.2 Jenkins CI services not showing

I have a gitlab server version "Gitlab 6.0.2 10b0b8f". I want to connect "Jenkins CI" for build purpose. for this I am following - http://doc.gitlab.com/ee/integration/jenkins.html .But In a project services I am not able to see "Jenkins CI". Only I…
Biswajit Das
  • 644
  • 7
  • 26
8
votes
2 answers

Install specific version of a plugin with install-plugin command

I cant see examples of how to do this: https://jenkins.io/doc/book/managing/plugins/ I backup a list of all plugins installed and their versions. I want to use install-plugin command to install all plugins (and their specific versions) from the…
red888
  • 27,709
  • 55
  • 204
  • 392
8
votes
1 answer

How to be parameterized that 2 projects which is "Build after other projects are built"

I have a problem and I'm looking for a direct solution or a workaround. I have 2 jobs on Jenkins: job A (the upstream job) and job B (the downstream job) that needs to be triggered after job A has finished I used to solve this problem with: "This…
8
votes
3 answers

Unable to produce a script file in jenkins

I am using jenkins for periodically building my node.js application. Whenever i am trying to build my application I get this on console output Started by user anonymous Building in workspace /Users/Shared/Jenkins/Home/workspace FATAL: Unable to…
Siddharth Sinha
  • 578
  • 2
  • 15
  • 35
8
votes
3 answers

Jenkins CLI with HTTPS

My Jenkins server was switched to now using HTTPS. However, now when trying to run jenkins-cli.jar, I get the following error: Exception in thread "main" java.io.IOException: Failed to connect to https://ncs-jenkins.cisco.com/ at…
tomrom95
  • 271
  • 2
  • 10
8
votes
1 answer

How can I get jenkins-cli.jar to use my ssh agent/keychain?

I'm using the jenkins-cli.jar file from my jenkins server, and on every run it prompts me for my ssh key passphrase. I'd like it to use my ssh keychain so I don't have to enter it on every invocation. If it matters, I'm on OSX using the default…
Daenyth
  • 35,856
  • 13
  • 85
  • 124
8
votes
2 answers

Jenkins CLI connection refused

When executing java -jar jenkins-cli.jar -s https://jenkins_url help I'm getting connection refused for some reason. Jenkins version is 1580.3, user has the permissions on Jenkins server, cli jar is up-to-date and ssh public key is configured…
Zloj
  • 2,235
  • 2
  • 18
  • 28
7
votes
2 answers

Jenkins CLI empty response

Hi I am using the CLI to transfer jobs between two jenkins servers. But I am unable to get the CLI working.. When I run: java -jar jenkins-cli.jar -s -auth : help I get a empty response, no errors, no exceptions, just an…
Vigneshwaren
  • 1,273
  • 2
  • 15
  • 24
7
votes
1 answer

Getting an IP Address through Jenkins REST API?

I've been tasked with instituting some health checking on some Jenkins jobs. The idea is to get the job's status and an associated IP address through the Jenkins rest API, so I can use that information to interface with another restful API. I have…
Jake Meacham
  • 103
  • 1
  • 9
7
votes
1 answer

Github-Jenkins Trigger issue with slave

I have a jenkins instance which has a windows slave machine attached. I also have a job running which resides in github and I have the trigger - "Build when a change is pushed to GitHub" set. as I push a change to github, there is no build…
Scooby
  • 3,371
  • 8
  • 44
  • 84
1
2
3
45 46