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
3
votes
4 answers

How to check disabled jobs with Jenkins server?

I am using Jenkins to run tests on my servers. So I created a job for each server and I run the test on the job, and I would like to know with simple bash script if my specific job is disabled/enabled? I can ssh to Jenkins server and I want to run…
3
votes
1 answer

Jenkins to trigger another build/project dynamically

Is there a way in Jenkins to trigger another build/project dynamically based on a parameter value in parent project? The reason for this is that I have 100's of projects and I don't want to use pipeline/conditional post build plugins to link all…
enthuguy
  • 405
  • 2
  • 8
  • 20
3
votes
0 answers

Deleting Builds from Build Queue when Superseded By Newer Patchsets

I have been using Jenkins v1.617 to automatically run validation tests on three hardware platforms. So far, Jenkins has been very well received and I like it a lot. I have a series of 'builder' jobs which are triggered with the Gerrit trigger plugin…
chanukhya bachina
  • 171
  • 1
  • 3
  • 16
3
votes
2 answers

Calling Jenkins from Slack slash command

Is there a way to make a REST API call from Slack? I can use Slash Commands to make GET/POST requests, but it seems I can't pass additional header parameters in the header. I am trying to invoke a remote Jenkins script which requires passing the…
Rami Enbashi
  • 3,526
  • 1
  • 19
  • 21
3
votes
2 answers

Jenkins: dynamically connect slave to master without knowing node secret

I struggle to (dynamically) start the Jenkins slave agent from my dedicated slave machine (Windows 2012 R2 server). The Jenkins master (ver. 1.617 - which I can upgrade if necessary, but not downgrade [before ver. 1.498 no credentials were…
Carsten
  • 2,047
  • 1
  • 21
  • 46
3
votes
3 answers

How to delete a Jenkins Workflow build that crashed and is endlessly running?

In some occasions a runtime error causes a Jenkins Workflow build to crash, but Jenkins still sees this as a running build. Aborting the job is not possible in de Jenkins Gui. How can I abort or delete such a build?
mipmip
  • 1,072
  • 1
  • 10
  • 24
3
votes
6 answers

Jenkins Add permissions to jobs using groovy

I need to add some permissions (Read, Build, Workspace, cancel etc) to a spesific user to a lot of jobs. I'm wondering it there is a way to do that using groovy script instead of doing it manually.
Alex Brodov
  • 3,365
  • 18
  • 43
  • 66
3
votes
1 answer

Jenkins running build steps on different nodes/slaves

I have master on Linux any slaves on Windows. Jobs building on Windows slaves (I use VirtualBox and JWS on slaves). But there is a problem: anytime virtual machines must to start and to stop when needed project must to build. So, I want to execute…
kachsheev
  • 31
  • 2
3
votes
2 answers

Export Jenkins User Account and Security Settings?

I'm working with Jenkins servers in three different environments:Development-Staging-Production. We work out the kinks in our Jenkins jobs in dev, test them in stage, and then finally move them to production. We do that be either replicating the…
Michael J
  • 1,383
  • 2
  • 14
  • 25
3
votes
2 answers

Renaming a Jenkins Job

I have renamed a Jenkins Job from the Jenkins GUI. I changed the Project name in the Configure menu and hitting Save afterwards. However the workspace name for this Jenkins job has not been changed. What I am finding is upon the job execution a new…
2
votes
0 answers

Jenkins Slave SSL Handshake failure

My Master Jenkins is running on an Ubuntu VM. Jenkins was installed via apt and the SSL termination takes place on an nginx, on the same server. When I try to connect slaves, it does not work. The slaves, at least on VM level, report an SSL…
sokolata
  • 491
  • 3
  • 7
  • 21
2
votes
2 answers

How to create users and passwords for Jenkins using JCASC

I am trying to create a user and password for Jenkins using JCASC. I can set up Jenkins however when I go to the GUI on my local host I do not see any users. Here is my code jenkins: systemMessage: "Jenkins configured automatically by Jenkins…
Matt Salem
  • 75
  • 8
2
votes
1 answer

how to get all job url from jenkins script console

when I run following code in Jenkins script console then I get the job location but I am wondering if there is a way to get whole url to the job rather then just the…
10raw
  • 506
  • 12
  • 26
2
votes
2 answers

How to add job build params in Jenkins shared Library?

This works steps.build "Job Name" This doesn't work steps.build "Job Name -p ParamKey1=ParamValue1 -p ParamKey2=ParamValue2" I also tried this but no luck steps.build "Job Name", parameters:[string(name: "Key1", value:"Value1")] Any help would…
2
votes
5 answers

Change Jenkins port

I am trying to change the Jenkins port from default 8080 to port 80. so I modified the file /etc/sysconfig/jenkins and changed the variable JENKINS_PORT="8080" to JENKINS_PORT="80". after changing the port I restarted jenkins service by systemctl…
Dani Wol.
  • 258
  • 4
  • 15