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
0 answers

$PWD and $WORKSPACE are different in Jenkins

My job has a build step Build - Execute shell, I only put these two command in: echo $WORKSPACE echo $PWD And the output really confused me: + echo /home/jenkins/workspace/tradefed/test_deployment /home/jenkins/workspace/tradefed/test_deployment +…
Corey
  • 1,217
  • 3
  • 22
  • 39
4
votes
3 answers

jenkins build not getting trigger for github push

Currently trying to automate the job build process to every github push. I have did the following steps to automate still it's not getting automated. what I am missing I did not get. installed Github Integration plugin in github for this…
Pranavadurai
  • 990
  • 2
  • 12
  • 28
4
votes
3 answers

Jenkins get current user in pipeline

I have a requirement in Jenkins pipeline where in after the successful build I need an user input to proceed or abort. The developers are only intended for deployment into Dev environment and Ops people can do on QA and Prod. My issue is if I login…
sudhir
  • 199
  • 2
  • 5
  • 16
4
votes
2 answers

How to check jenkins node connection status using jenkins-cli

I'm trying to check specific Jenkins node is connected using Jenkins CLI . To get the node details I can use get-node command and it returns details as this xml
Nayana Adassuriya
  • 23,596
  • 30
  • 104
  • 147
4
votes
1 answer

404 while trying to configure androidLint plugin for Jenkins

I'm getting a problem with the Lint configuration on Jenkins. I was able to configure others static analysis but with the Lint I'm getting the error bellow: HTTP ERROR 404 Problem accessing /job/VDA_NIGHLTY_BUILD/androidLint/configureDefaults.…
Rodrigo Borba
  • 1,334
  • 1
  • 14
  • 21
4
votes
2 answers

Multi branch pipeline jenkins job with [ci skip]

I have to skip some jenkins build based on git commit message. So I have searched and found this jenkins plugin.But I could not configure enable ci-skip in multi branch pipeline job. This option is not available in multi branch pipeline setup. Is…
Yahwe Raj
  • 1,947
  • 5
  • 25
  • 37
4
votes
1 answer

how do i get the latest build in jenkns with a specified parameter

My goal is to get the latest Jenkins job (jobname hanna) with a specific parameter. The only reason why I'm doing this is Jenkins do not return a build number when I trigger from my script, so I have to pass in a parameter, but I have to be able to…
cakester
  • 421
  • 4
  • 15
4
votes
1 answer

How to manually add artifacts in jenkins?

I am using shell script to create a build but that falls outside of the Jenkins Directory and so I am unable to add it as Artifact. Thank you.
Rajesh Vekariya
  • 370
  • 3
  • 7
4
votes
2 answers

Jenkins SEVERE: I/O error in channel Chunked connection

I am using this command for installing jenkins plugins java -jar {{ jenkins_dir }}/jenkins-cli.jar -s http://localhost:{{ jenkins_port}} install-plugin {{ item }} above command giving this error SEVERE: I/O error in channel Chunked…
Jameel Grand
  • 2,294
  • 16
  • 32
4
votes
1 answer

Parsing the command line in jenkins-cli groovy scripts

I have written a groovy script to collect some statistics from my Jenkins server, which works ok in the default case. However, when I want to pass options to it, I am getting trouble: (1) The standard groovy CliBuilder exists, but fails to…
jmster
  • 943
  • 1
  • 12
  • 25
4
votes
1 answer

How to get Jenkins list of job details using Jenkins client in Java

I am searching some Jenkins client frameworks to deal with Jenkins server.I have found a good and updated Jenkins client server API called RisingOak/jenkins-client Connectivity with Jenkins Server JenkinsServer jenkins = new JenkinsServer(new…
gihan-maduranga
  • 4,381
  • 5
  • 41
  • 74
4
votes
1 answer

Display Jenkins Plots on Project Homepage

I am using the PLOT plugin in Jenkins, and it creates 'Plots' link under the left hand top links panel. What I am looking for is display these plots on the Homepage of the project. Whenever any user visits the home page of the project, he/ she…
ATP
  • 832
  • 1
  • 15
  • 29
4
votes
1 answer

Configure Jenkins JDK installations Programmatically

I'm looking to configure Jenkins JDK installations programmatically, either through the CLI or by writing XML files. I know I can amend the config.xml file (main one) to include JDK installations but I'd prefer to have it configured in a separate…
samdunne
  • 306
  • 1
  • 2
  • 14
4
votes
2 answers

jenkins can't find the job when build job, why?

when run the command like java -jar jenkins-cli.jar -s http://192.168.9.199:8080 list-jobs --username admin --password 'admin' the result is : testjob but run java -jar jenkins-cli.jar -s http://192.168.9.199:8080 build testjob --username admin…
Sleepwom
  • 227
  • 6
  • 15
4
votes
1 answer

Is it possible run Selenium test without active desktop and Jenkins slave?

I have a Windows Server 2012 server, with Jenkins and Selenium tests project on this server. I want to run my tests on the server via Jenkins rebuild event. Is it possible run Selenium tests in browsers (Firefox, Chrome and IE) directly on this…