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
5
votes
1 answer

Using declarative-linter in Jenkins

I've been trying to use Command-line Pipeline Linter. Can i use this declarative-linter locally on the server? I tried run: declarative-linter < Jenkinsfile And got: -bash: declarative-linter: command not found Do i need to install this command or…
Omri
  • 1,436
  • 7
  • 31
  • 61
5
votes
2 answers

How to get list of admin user list in Jenkins via any script?

I am trying to get the list of admin user list and also the users and their level of permissions in Jenkins. Can anyone help me with any script available please.
user9473385
  • 131
  • 2
  • 8
5
votes
0 answers

Unable to use jenkins cli using ssh protocol via a chef cookbook (it works manually)

I am using ssh as protocol to connect to jenkins via cli . The same command is working when run manually , but fails via my cookbook . server # java -jar /opt/tomcat/webapps/ROOT/WEB-INF/jenkins-cli.jar -s http://localhost:8181/ -ssh -user update -i…
5
votes
1 answer

How to delete a view in Jenkins and automatically its jobs?

With Jenkins, if I delete a view, I want to delete the view's jobs also. Is there a way to do it properly ?
Youssouf Maiga
  • 6,701
  • 7
  • 26
  • 42
5
votes
4 answers

Change number of executors on existing Jenkins node by script

I wan't to able to script and change number of executors on a node(not master) that already exists. Preferably by using groovy but if there is a plugin or CLI command that could do the trick that is also interesting. Snippet of what I am trying to…
ki_
  • 619
  • 1
  • 10
  • 21
5
votes
3 answers

jenkins cli command gives error java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A

I am trying to execute jenkins cli command java -jar /home/jenkins/jenkins-cli.jar -s http://jenkins.server.com/ version --username jenkins --password jenkins Getting following error Aug 05, 2015 6:01:02 AM …
sandy_ws
  • 155
  • 2
  • 14
5
votes
2 answers

Jenkins - Copy build log from master to a shared drive

Can someone direct me here? I have a simple job configured in Jenkins on a WINDOWS environment (master and all slaves running on windows) and the job is supposed to run on a particular slave. When you build the job, the build log ( log.log) gets…
5
votes
2 answers

Jenkins - change master's ip

I had a technical problem that forced me to change my jenkins master computer. I took the hard disk and moved it to a new computer, but now the IP of the master computer changed. The master jenkins works but the slave nodes are marked as offline,…
Gilad Baruchian
  • 930
  • 3
  • 14
  • 30
5
votes
2 answers

Jenkins job dependency/relationship

We are using jenkins for CI and have some complex jobs interdependent.I just want to represent graphically or in any other way the dependencies of jobs.I investigated and installed dependency graph with graphviz representation but its giving too…
Sarath S
  • 373
  • 3
  • 6
  • 17
5
votes
3 answers

creating jenkins jobs with ansible

I'm working on a project to deploy a jenkins CI server on centos7 using ansible And I'm having problems creating jenkins jobs from an xml template using ansible. Everything works fine so far, but now i want to be able to create jobs, and give them…
Muffin
  • 53
  • 1
  • 3
5
votes
5 answers

Pass environment variables to Ant build.xml from Jenkins?

I am using Jenkins as CI. I have an build.xml. Build.xml has code like below. How can i pass value to build.xml from Jenkins ? Can i pass it through environment variables?
user755806
  • 6,565
  • 27
  • 106
  • 153
5
votes
1 answer

Jenkins: How can I populate parameters from database to parameterized job?

I need to pull values from database and show parameters as dropdown in Jenkins parameterized job. Is there any available plugin to achieve this? Help would be appreciated :)
Kiran
  • 20,167
  • 11
  • 67
  • 99
4
votes
0 answers

How to know who remote triggered the job in Jenkins?

I can trigger the Job using POST request using curl -u USER:password JENKINSURL/job/JOBNAME/build?token=mytoken123 But in Jenkins job, I see "Started by remote host EXTERNAL IP" What I am expecting is "Started by remote host from USER EXTERNAL…
4
votes
1 answer

Jenkinsfile - don't load implicit global libraries

My company's Jenkins uses global libraries, which are loaded implicitly. They are c*** and I don't want them for every pipeline. It takes more than 10 sec to load them. Does anybody know a way how to suppress them? Thanks!
SScholl
  • 598
  • 6
  • 19
4
votes
2 answers

Unable to install suggested plugins of jenkins on docker

I had launched jenkins through docker, it has been launched in administrator mode. After entering password when i selected to install suggested plugin it fails with most of the installation. Post that when i created jenkins user and navigated to…
Asad Ali
  • 389
  • 1
  • 10
  • 28