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

Get build configuration details using Jenkins API

I am looking for a way to get the configuration details of a Jenkins job using Jenkins API. Something which is displayed in the command block in the below image. Has anybody tried getting configuration details using Jenkins API?
tech_human
  • 6,592
  • 16
  • 65
  • 107
4
votes
2 answers

How to change a Git URL in all Jenkins jobs

I have more than 100 jobs in Jenkins and I have to change a Git URL in each and every job since we changed the git server. I must traverse each job and change the Git URL. Can anyone help me with a groovy script? I was able to traverse each job,…
3
votes
2 answers

Jenkins agent crashed/Terminated Caused by: java.security.AccessControlException:

Nov 02, 2021 9:53:03 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve INFORMATION: Remoting server accepts the following protocols: [JNLP4-connect, Ping] Nov 02, 2021 9:53:03 AM…
Bilawal
  • 244
  • 5
  • 19
3
votes
1 answer

Jenkins build showing "Operation not permitted"

I have installed JENKINS and created a bob, But the job is getting failed with the below error.I have tried many thing like giving permissions and all but cannot able to make it run. Can anyone please let me know what could be the reason and how to…
Linu
  • 589
  • 1
  • 10
  • 23
3
votes
0 answers

Getting duplicate AMI name client error, even though it is creating for the first time

I am using a jenkins to trigger the lambda , which creates an AMI image from an ec2 instance, and then creates a launch configuration , and updates the auto scaling group with the new launch configuration , and let the auto scaling group creates…
3
votes
3 answers

How to reset Jenkins Admin account password? I am running Jenkins in Docker in windows

I have created an Admin account in Jenkins after unlocking the Jenkins and doing the initial setup. Now I have forgot the password of the admin account and I am not able to login Jenkins
Shubham Parmar
  • 147
  • 1
  • 13
3
votes
2 answers

jenkins - docker: command not found.. path setup

SO i'm very new to jenkins and I'm trying to use jenkins to automatically build my docker image. using the freestyle project under build step i added an execute shell added "docker images" (to see if docker worked) cont following…
Lacer
  • 5,668
  • 10
  • 33
  • 45
3
votes
4 answers

How to run powershell commands in administrative mode using jenkins?

I have a .ps1 file which needs to be run in administrative mode for it to work. But unfortunately I couldn't find a way to do that using Jenkins. Currently I am running this powershell command in execute batch command on Jenkins with all possible…
Krishna Prasad S
  • 141
  • 2
  • 17
3
votes
1 answer

Jenkins: Passing a variable between scripts, and accessing it on a post build actions

I have a Jenkins job, with SCM from bitbucket, two shell scripts, and a post build action publishing the result to Slack. Naively I want to pass a concluded variable in the first shell script to the second, add some information to that variable in…
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
3
votes
0 answers

Conditionally block Jenkins jobs based on parameter

I have 2 Jenkins jobs - Jenkins_Job1 and Jenkins_Job2, both have string parameter. Jenkins_Job1 after running successfully kicks off Jenkins_Job2 for the same parameter(3 letters abc/def/ghi etc is the parametr value). Build names of jobs are built…
dreddy
  • 463
  • 1
  • 7
  • 21
3
votes
1 answer

config.xml on system not same as Jenkins UI

I have edited the config.xml file within the jobs directory on the Jenkins system: $JENKINS_HOME/jobs/myjob/config.xml. I expect the changes to be reflected on the Jenkins UI when I go to configure on the job page:…
3
votes
0 answers

Unlock Jenkins 2 without UI

I'm trying to unlock Jenkins 2 using the curl command in the VM where Jenkins Server is installed. I have the following: curl 'admin:a84b61b7f2704b18ada3cbd32c3ad39e@127.0.0.1:8080/j_acegi_security_check -X POST -d…
3
votes
2 answers

How to add multiple ssh keys to Publish Over SSH Plugin in jenkins

I am using jenkins to build and publish my project. I am using the Publish Over SSH plugin to push my artifacts to the server. I was able to configure only one ssh key for the plugin in the Jenkins setting . Is it possible to add multiple keys and…
Spencer Bharath
  • 507
  • 2
  • 7
  • 21
3
votes
1 answer

How to start a Jenkins multibranch pipeline build from the command line (cli)?

Currently I can start a Jenkins job using the cli. Example: java -jar jenkins-cli.jar -s http://buildserver:8080 build Job_Name I am playing around with the Jenkins multibranch pipeline feature and have not figured out how to start this type of…
jstanley
  • 2,087
  • 15
  • 22
3
votes
1 answer

Multiple Slaves with multiple Users

I have to run some agents on multiple Windows clients. (Windows Server 2012R2). The agent must run with a specific user. Is there any option to run a job with multiple Windows users on the same slave? For example: PC 1 logged on user: bob, jimmy,…