jenkins-fire-cli: simplify the usage of jenkins-cli and job-dsl commandl line

2022-09-14 Thread Weihong Xu
Jenkins community has provided the offical jenkins-cli.jar but it is not intuitive to use it. So I just create a wrapper for it to make it more easier to use. All you need is to pip install jenkins-fire-cli jenkins-fire-cli config set jenkins.url http://your-jenkins-site-url jenkins-fire-cli

Re: After upgrade, Jenkins CLI "console" command hangs

2022-05-03 Thread Alex Earl
022 at 5:01:47 PM UTC-6 G Dameron wrote: > >> We just upgraded from 2.249.2 to 2.332.1. The CLI commands we use >> routinely in our freestyle jobs are working as before, with one exception: >> console. The command correctly outputs the console log of the specified >> job

Re: After upgrade, Jenkins CLI "console" command hangs

2022-05-03 Thread G Dameron
we cannot remain on sshd 3.0.3. Jenkins developers -- is a Jira ticket warranted for this? On Wednesday, April 27, 2022 at 5:01:47 PM UTC-6 G Dameron wrote: > We just upgraded from 2.249.2 to 2.332.1. The CLI commands we use > routinely in our freestyle jobs are working as before, with on

After upgrade, Jenkins CLI "console" command hangs

2022-04-27 Thread G Dameron
We just upgraded from 2.249.2 to 2.332.1. The CLI commands we use routinely in our freestyle jobs are working as before, with one exception: console. The command correctly outputs the console log of the specified job, but then never finishes, it just hangs. Can anyone confirm that "co

Re: Keyring in jenkins cli

2022-02-22 Thread Bhargav sai
Hi again, Thanks for referring to the documentation. I have used with environment variables, but I would like to implement it with the keyring method. Any suggestions or I'll look into the above mail you have sent. Thank you again. On Tuesday, February 22, 2022 at 8:26:56 PM UTC+5:30 dheinric

Re: Keyring in jenkins cli

2022-02-22 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, dem 22.02.2022 um 06:33 -0800 schrieb Bhargav sai: While uploading the python package using twine, it's asking for credentials. I also don't know Twine, so I checked its documentation. It says: -u USERNAME, --username USERNAME The username to authenticate to

Re: Keyring in jenkins cli

2022-02-22 Thread Bhargav sai
Hi, Thanks for replying. Actually, the keyring is a feature in Ubuntu, to store credentials for a particular service or application. What I am trying to achieve here, is, I have integrated the nexus artifact repository in Jenkins to upload the PYthon package(tar.gz) into the nexus repo. While

Re: Keyring in jenkins cli

2022-02-22 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, dem 21.02.2022 um 22:18 -0800 schrieb Bhargav sai: How to input the password to the build. Don't know what exactly "keyring" is, but in order to inject credentials into a build, you'd need to add them to Jenkins, first: "Manage Jenkins" -> "Manage credentials". Then, in the job confi

Keyring in jenkins cli

2022-02-22 Thread Bhargav sai
Hi team, I am working on Jenkins for a few days and a beginner question, I would like to ask. How to input the password to the build. Suppose, I am working on Keyring, and whenever, I set "keyring set system user", prompts for the password. How can I input the password while the build is going

Jenkins CLI and Okta

2021-04-14 Thread octo...@gmail.com
Trying to do a basic cli command below I am unable to do this since my Jenkins uses OKTA Any advice or docs on how to do this? hours of googling has not been successful java -jar /home/jenkins/jenkins/jenkins-cli.jar -s http:/// -auth @/home/jenkins/jenkins/jenkins_credentials list

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-08 Thread jesus fernandez
it happened to be an issue with the path, as jenkins uses its own path for its user I have not declared the path for the right user El miércoles, 7 de abril de 2021 a las 9:24:44 UTC+2, jesus fernandez escribió: > az is installed as it runs from the cmd, and it also runs if I start > jenkins f

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-07 Thread jesus fernandez
az is installed as it runs from the cmd, and it also runs if I start jenkins from a non administrator prompt, it just do not work when starting Jenkins from a admin prompt (which I need to) El martes, 6 de abril de 2021 a las 21:22:06 UTC+2, Martin Schmude escribió: > Maybe az has not been inst

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-06 Thread 'Martin Schmude' via Jenkins Users
Maybe az has not been installed on the system where the job is executed. Or az is not part of the PATH variable in the context of the job execution. Let the job execute "echo $env:path" before any "az ..." commands, so that it prints out its path environment variable. jesusfern...@gmail.com schri

I cannot run Azure CLI commands from jenkins pipeline

2021-04-06 Thread jesus fernandez
I am trying to run some az commands from a Jenkins pipeline which (running in Windows 10) I already used in my laptop´s Jenkins, but when trying to use it on another computer (also running w10) I get this error : ``` 11:12:47 powershell.exe : az : The term 'az' is not recognized as the name of

ERROR: [kubernetes-cli] unsupported credentials type com.microsoft.jenkins.kubernetes.credentials.KubeconfigCredentials

2020-12-18 Thread anilkumar panditi
ins. Navigate to, - Jenkins -> System Configurations -> Cloud - Select the Credentials that we created in step 1 and click on Test Connection - You should receive Connection test successful message But my pipeline is failing with error, *ERROR: [kubernetes-cli] unsupported credent

Re: how to configure jenkins to use jenkins CLI by ssh

2020-02-20 Thread Dirk Heinrichs
Am Donnerstag, den 20.02.2020, 06:06 -0800 schrieb oneslide icywater: sshd isn't running How Can I solve it ? I'm confused. Do you want to access Jenkins itself via SSH (Jenkins' internal SSH server) or the Docker container in which Jenkins runs? Bye... Dirk -- Dirk Heinrichs Senior Systems

how to configure jenkins to use jenkins CLI by ssh

2020-02-20 Thread oneslide icywater
with https://jenkins.io/doc/book/managing/cli/ ,I successfully configure jenkins to use its CLI by app token and user-password,but ssh failed. I run my jenkins in docker in local testing vm。 docker container run --name jenkins-blueocean --rm --detach \ --network jenkins --env DOCKER_HOST=tcp

Jenkins Cli Import / Export is not working for Folder

2019-11-18 Thread lavanya anbu
Hi All, I am new to jenkins and using Jenkins ver. 2.190.2 which is installed in Azure Kubernetes version 1.14.6 . I am trying to export the jenkins jobs using the command line using a simple script by passing the job name. Export_jobs() { mkdir JOB while read -r i do java -jar jenkins-cli.jar

jenkins CLI certificate issue

2019-11-01 Thread shankar nanjundan
Hi , I downloaded jenkins CLI to my local machine and trying to export job from jenkins but i am getting the below error . Anybody solved this issue javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed

Re: Jenkins CLI with http protocol does not respond in 2.81

2019-04-09 Thread pshah via Jenkins Users
Thanks a lot your reply helped me a lot I had to update nginx to have these settings # Required for new HTTP-based CLI proxy_http_version 1.1; proxy_request_buffering off; # workaround for https://issues.jenkins-ci.org/browse/JENKINS-45651 <https://wiki.jenkins.io/disp

Jenkins HTTP full-duplex channel timeout when building job from Jenkins CLI Jar file

2019-03-20 Thread srikanth . indurthi
When trying to build a job from Jenkins CLI with jenkins-cli.jar file, with the command. This was working fine few days ago. Need help in resolving this issue please as its blocking the complete automation pipeline. *java -jar /root/jenkins-cli.jar -s https:/// -auth username:authtoken build

Re: CLI command to start jenkins job with default and overridenparameters

2019-01-10 Thread Vicki Kozel
Kozel > *Sent: *10 January 2019 03:37 > *To: *Jenkins Users > *Subject: *CLI command to start jenkins job with default and > overridenparameters > > > > Hello, > > I am having trouble with combining default and overriden parameters when > invoking jenkins

RE: CLI command to start jenkins job with default and overridenparameters

2019-01-10 Thread Daniel Butler
From: Vicki Kozel Sent: 10 January 2019 03:37 To: Jenkins Users Subject: CLI command to start jenkins job with default and overridenparameters Hello, I am having trouble with combining default and overriden parameters when invoking jenkins jobs through remote CLI command.   It  looks like the

CLI command to start jenkins job with default and overriden parameters

2019-01-09 Thread Vicki Kozel
Hello, I am having trouble with combining default and overriden parameters when invoking jenkins jobs through remote CLI command. It looks like the following invocation passes command line parameters to a job just fine, but ignores the default parameters: curl -v https://jenkins/job/JobName

Can not connect to jenkins using jenkins-cli

2018-12-20 Thread Smahane EL BAZ
Hello , I can not connect to jenkins using these commands even if the option Enable CLI over Remoting is activated in Configure Global Security: 1-java -jar jenkins-cli.jar -s jenkinsUrl help 2-java -jar jenkins-cli.jar -http -auth myusername:mypassword -s JenkinsUrl get-job jobName

java cli able to create-job and delete-job but enable-job/disable-job fail

2018-11-15 Thread eric.boehm via Jenkins Users
I am using jenkins 2.141 but I have had this problem since at least jenkins 2.122 I can create and delete jobs using the java cli For example wget http://jenkins/hnd/jnlpJars/jenkins-cli.jar -o /var/tmp/jenkins-cli.log -O $HOME/bin/jenkins-cli.jar java -jar $HOME/bin/jenkins-cli.jar -user

Where is the CF CLI executable located in a Jenkins server instance?

2018-01-31 Thread 'Larry Zhang' via Jenkins Users
HI, i added "cf login... cf push ..." in the "Execute shell" section under "Build" in the Jenkins config, and it pushed my code to my cloud foundaries. this is good. My question is where is the CF CLI executable located? I didn't do need to do con

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-27 Thread Robert Hales
domain -auth user:pass >>> offline-node some-node >>> >>> The builds which were running will continue to run until finished >>> (existing builds are not interrupted) - this is expected. >>> >>> >>> 3) So my reasoning is that I need some

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-27 Thread 'Tomasz Chmielewski' via Jenkins Users
ll continue to run until finished >> (existing builds are not interrupted) - this is expected. >> >> >> 3) So my reasoning is that I need some kind of: >> >> java -jar jenkins-cli.jar -s https://jenkins.my-domain -auth user:pass >> list-jobs some-view >

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Robert Hales
howing the builds which are currently running (for a given view, > or for a given node). Then parse it, and decide if the node is really > offline (as in, not accepting any new builds, and not running any builds > right now) or not. > > > Unfortunately, I don't see such an o

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
ccepting any new builds, and not running any builds right now) or not. Unfortunately, I don't see such an option in https://jenkins.my-domain/cli/ On Friday, October 27, 2017 at 7:25:43 AM UTC+9, Devin Nusbaum wrote: > > Great, thanks for confirming! I’ll update the docs. > > Thanks, >

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
proxy_redirect http:// https://; > proxy_pass http://jenkins <http://jenkins/>; > > # Required for new HTTP-based CLI > proxy_http_version 1.1; > proxy_request_buffering off; > proxy_buffering off; > &g

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
p:// https://; proxy_pass http://jenkins; # Required for new HTTP-based CLI proxy_http_version 1.1; proxy_request_buffering off; proxy_buffering off; # workaround for https://issues.jenkins-ci.org/browse/JEN

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
forwarded_for; > proxy_set_headerX-Forwarded-Proto $scheme; > proxy_redirect http:// https://; > proxy_pass http://jenkins <http://jenkins/>; > # Required for new HTTP-based CLI >

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
warded_for; proxy_set_headerX-Forwarded-Proto $scheme; proxy_redirect http:// https://; proxy_pass http://jenkins; # Required for new HTTP-based CLI proxy_http_version 1.1; proxy_request_buf

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
r your version of Jenkins. (If your Jenkins logs at the time you try to connect via CLI have errors that say something to the effect of “Full-duplex channel timeout” then I expect those settings to fix it.) > On Oct 26, 2017, at 5:18 PM, 'Tomasz Chmielewski' via Jenkins Users &g

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
r [26/Oct/2017:21:11:52 +] "GET /crumbIssuer/api/xml/?xpath=concat(//crumbRequestField,\x22:\x22,//crumb) HTTP/1.1" 404 335 "-" "Java/1.8.0_131" 10.11.0.8 - user [26/Oct/2017:21:12:07 +] "POST /cli?remoting=false HTTP/1.1" 200 11 "-" &qu

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
Got it, thanks: https://wiki.jenkins.io/display/JENKINS/Jenkins+CLI On Friday, October 27, 2017 at 5:57:18 AM UTC+9, Robert Hales wrote: > > You have to use the Jenkins CLI. I guess that can be a bit confusing. It > isn't a script available to run at the command line. Jenkins

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Robert Hales
You have to use the Jenkins CLI. I guess that can be a bit confusing. It isn't a script available to run at the command line. Jenkins has their own CLI. If you google for it, you will find the details pretty easily. On Thursday, October 26, 2017 at 2:55:07 PM UTC-6, Tomasz Chmielewski

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
2.73.2 (...) On Friday, October 27, 2017 at 12:21:17 AM UTC+9, Robert Hales wrote: > > In the CLI, use the 'offline-node' command. Another useful command in what > it looks like you want to do might be "wait-offline-node". > > You could also create a

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Robert Hales
In the CLI, use the 'offline-node' command. Another useful command in what it looks like you want to do might be "wait-offline-node". You could also create a groovy script to do it and run that from the REST API. On Thursday, October 26, 2017 at 3:35:29 AM UTC-6, Toma

CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread 'Tomasz Chmielewski' via Jenkins Users
Is there a CLI/scripted way to stop scheduling any new builds on a given node? Basically, any builds currently running on a given node should continue to run until they are finished -- and no new builds should be started. Think of "retiring" a node, and replacing it with a new

Re: Another CLI question

2017-10-08 Thread Daniel Beck
> On 4. Oct 2017, at 22:37, Richard Ginga wrote: > > nothing in my nginx configuration indicates any buffering explicitly one way > or the other. Time to re-read the first snippet in https://wiki.jenkins.io/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy -- You received this message

Jenkins cli jar gave hava exception error on new LTS version

2017-10-06 Thread cbssslt
Hi, we see Jenkins cli jar gave hava exception error on new LTS version, is that known issue? Thanks C -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Another CLI question

2017-10-05 Thread Riccardo Foschia
Am 04.10.2017 um 22:37 schrieb Richard Ginga: Hi Michael, thanks for the response, nothing in my nginx configuration indicates any buffering explicitly one way or the other. Richard, just in case you are using any kind of anti-virus software on the machine executing the CLI commands, it&#

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-05 Thread Riccardo Foschia
Jenkins 1.638 to 2.81 CLI I need to switch to http protocol but it doesn't work (SSH protocol seems to work after the upgrade). No matter which CLI command I use, after a few seconds the call returns but shows no result. E.g. java -jar jenkins-cli.jar -s http://10.0.3.108 -logger FINE help called

Re: Another CLI question

2017-10-04 Thread Richard Ginga
erver and > without reaching it through your reverse proxy, does it work ? > I'm wondering if it's not related to the configuration of your reverse > proxy. As described in this documentation > <https://jenkins.io/doc/book/managing/cli/#http-connection-mode>, you > need

Re: Another CLI question

2017-10-04 Thread Michael Pailloncy
If you run this very same command directly on the Jenkins server and without reaching it through your reverse proxy, does it work ? I'm wondering if it's not related to the configuration of your reverse proxy. As described in this documentation <https://jenkins.io/doc/book/manag

Re: Another CLI question

2017-10-04 Thread Richard Ginga
On Wed, Oct 4, 2017 at 10:08 AM, Richard Ginga wrote: > I see a thread happening on CLI issues. I have a different question/issue > and do not want to hijack that other discussion. > > when running any cli in a pipeline script I an getting below but the > command works >

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
context path just http://YOUR_HOST/jnlpJars/jenkins-cli.jar). The jenkins-cli.jar is the one from the 2.81 server instance. I downloaded it from the link you mentioned. The MANIFEST.MF of this jar says, it's Jenkins-CLI 2.81. And I do not see exceptions in /var/lib/jenkins/jenkins.log aroun

Another CLI question

2017-10-04 Thread Richard Ginga
I see a thread happening on CLI issues. I have a different question/issue and do not want to hijack that other discussion. when running any cli in a pipeline script I an getting below but the command works *00:04:11.368* + java -jar /Users/jenkins/Downloads/jenkins-cli.jar -noKeyAuth -s https

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Devin Nusbaum
-cli.jar). > On Oct 4, 2017, at 7:50 AM, Riccardo Foschia > wrote: > > Hi all, > > after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http > protocol but it doesn't work (SSH protocol seems to work after the upgrade). > > No matter which CLI comman

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Am 04.10.2017 um 14:53 schrieb Daniel Beck: On 4. Oct 2017, at 14:29, Riccardo Foschia wrote: Thanks for your answer, but there is no proxy running. What security realm are you using? We are using LDAP and project based matrix authorization (like before upgrading). In the old Jenki

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Daniel Beck
> On 4. Oct 2017, at 14:29, Riccardo Foschia > wrote: > > Thanks for your answer, but there is no proxy running. What security realm are you using? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rec

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Am 04.10.2017 um 14:00 schrieb Daniel Beck: On 4. Oct 2017, at 13:50, Riccardo Foschia wrote: after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http protocol but it doesn't work (SSH protocol seems to work after the upgrade). No matter which CLI command I use, after

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Daniel Beck
> On 4. Oct 2017, at 13:50, Riccardo Foschia > wrote: > > after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http > protocol but it doesn't work (SSH protocol seems to work after the upgrade). > > No matter which CLI command I use, after a few se

Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Hi all, after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http protocol but it doesn't work (SSH protocol seems to work after the upgrade). No matter which CLI command I use, after a few seconds the call returns but shows no result. E.g. java -jar jenkins-cli.jar -s

How to get the status of a jobs run by Bulk Builder in Jenkins using CLI

2017-08-30 Thread vijay
I am running jobs from a remote server on Jenkins which uses Bull Builder to run jobs. I am running jobs using the following command. curl -u username:password -X POST http://localhost:8080/bulkbuilder/build -d action=immediate_build -d build=all -d pattern=*foo* But I would also like to

Jenkis CLI client connection problem over CLI-Port

2017-06-21 Thread Łukasz Zachulski
Is there a way to pinpoint the thread which holds CLOSE_WAIT connection? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegrou

Jenkis CLI client connection problem over CLI-Port

2017-06-21 Thread Łukasz Zachulski
Hello, I'm using Jenkins 1.642.1 and since 2 weeks I'm seeing recurring problems with Jenkins CLI client. Precisely the problem is with CLI client not able to correctly establish connection with Jenkins master and get an response. It looks like the connection hangs. Checking connec

How to use Jenkins CLI for linter?

2017-05-19 Thread David Aldrich
Hi I want to use the Jenkins declarative script linter via the CLI. I have specified a fixed SSHD port in Jenkins Global Security. I have shared my SSH public key with my account on the Jenkins server, so I can connect to the server using SSH. However, when I try to run the linter I get an

SEVERE: I/O error in channel Chunked connection to http://example:8080/cli

2017-04-07 Thread Christopher Antony Raj
Hi, I am trying to delete the old build from cli using the command java -jar jenkins-cli.jar -s http://example.com:8080 delete-builds myproject '25-26' --username $user --password $pwd but getting these errors : java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A

Re: Createing job through CLI

2017-03-20 Thread Adam Levine
oops, didn't realize I posted on a 3yr old thread. On Wednesday, July 2, 2014 at 1:48:35 PM UTC-5, Mike Craig wrote: > > Hello, > > I am using the Jenkins CLI to pull down a list of 'template' jobs, search > and replace for our release version, then "create&

Re: Createing job through CLI

2017-03-20 Thread Adam Levine
off. On Wednesday, July 2, 2014 at 1:48:35 PM UTC-5, Mike Craig wrote: > > Hello, > > I am using the Jenkins CLI to pull down a list of 'template' jobs, search > and replace for our release version, then "create" a job using the job XML > which I have pulled f

jenkins CLI command to resolve 'dependency errors loading some plugins"

2017-03-08 Thread Farrukh Najmi
Hi Guys, I am provisioning a server with Jenkins using Chef cookbook at https://supermarket.chef.io/cookbooks/jenkins On startup I see the following error which I can resolve using the UI. Is there a CLI command to do the resolve plugin dependency errors and restarting jenkins? TIA. There

Re: Problems using jenkins-cli quiet-down -block

2017-01-15 Thread Joe
After some more tests it looks like the problem affects pipeline jobs but not freestyle jobs. I guess this is a bug so have raised a jira https://issues.jenkins-ci.org/browse/JENKINS-41085 On Wednesday, 11 January 2017 09:59:46 UTC, Joe wrote: > > > Hi all, > > I want to run some scripts exter

Problems using jenkins-cli quiet-down -block

2017-01-11 Thread Joe
Hi all, I want to run some scripts externally that require that all jobs are stopped. I expected the following command to stop new jobs being started, and only return once all the jobs in the queue have finished (or reached the end of a stage for pipeline and paused): java -jar jenkins-cli.ja

Re: Can't install Jenkins plugins with the cli

2016-10-30 Thread red 888
eased any day now). > > > On 30.10.2016, at 03:48, red 888 > > wrote: > > > > Running Server 2012 R2, Jenkins ver. 2.19.1 > > > > > > > > Installed Jenkins via the Windows MSI > > > > > > > > I can't

Re: Can't install Jenkins plugins with the cli

2016-10-30 Thread Daniel Beck
> > > I can't seem to install plugins with the cli: > > & 'C:\Program Files (x86)\Jenkins\jre\bin\java.exe' -jar 'C:\Program Files > (x86)\Jenkins\war\WEB-INF\jenkins-cli.jar' -s 'http://localhost:8080/' > install-plugi

Can't install Jenkins plugins with the cli

2016-10-29 Thread red 888
Running Server 2012 R2, Jenkins ver. 2.19.1 Installed Jenkins via the Windows MSI I can't seem to install plugins with the cli: & 'C:\Program Files (x86)\Jenkins\jre\bin\java.exe' -jar 'C:\Program Files (x86)\Jenkins\war\WEB-INF\jenkins-cli.jar' -s 'http:

Re: How to install plugin with jenkins-cli with version?

2016-09-23 Thread Daniel Beck
Specify a URL or local path to a file. The update site doesn't have metadata for arbitrary versions, so you need to provide enough information. > On 23.09.2016, at 16:31, user_dev wrote: > > I am trying to install jenkins plugin with jenkins-cli , it works if > > ja

How to install plugin with jenkins-cli with version?

2016-09-23 Thread user_dev
I am trying to install jenkins plugin with jenkins-cli , it works if java -jar /opt/jenkins/jenkins-cli.jar -s http://localhost:8080 install-plugin git but fails for java -jar /opt/jenkins/jenkins-cli.jar -s http://localhost:8080 install-plugin git 2.53. Reading to the docs it says that

Re: http://my_jenkins_server/cli returns 404?

2016-09-19 Thread Bob Hansen
That was it. I'm using an automated install of jenkins and it was installing a groovy script where you described. Remaned the script, restarted the service and I can now get to the CLI from the dashboard. Thanks! On Friday, September 16, 2016 at 10:12:25 PM UTC-4, Daniel Beck wrote: >

Re: http://my_jenkins_server/cli returns 404?

2016-09-16 Thread Daniel Beck
Make sure you don't have an init.groovy[.d] in JENKINS_HOME that disables the CLI; we recommended doing that last November as workaround for a 0-day vulnerability. > On 16.09.2016, at 11:50, Bob Hansen wrote: > > Been trying use the jenkins cli to programmatically set buil

http://my_jenkins_server/cli returns 404?

2016-09-16 Thread Bob Hansen
Been trying use the jenkins cli to programmatically set builds to unstable from failed based on conditions that I will find in various log files related to the project I'm working on. One of the recommendations is to use the jenkkns_cli to set it via the jenkins_cli, however if I do

Re: Advice required for accessing Jenkins using CLI

2016-09-16 Thread Tomasz Krzemiński
Hi, check if you have enabled TCP port for JNLP agents (in Configure Global Security) On Wednesday, September 14, 2016 at 3:21:14 PM UTC+2, Irusappan PaneerSelvam wrote: > > Dear All, > > I'm trying to invoke Jenkins hosted on AWS machine using Jenkins-cli.jar. > Both

Advice required for accessing Jenkins using CLI

2016-09-14 Thread Irusappan PaneerSelvam
Dear All, I'm trying to invoke Jenkins hosted on AWS machine using Jenkins-cli.jar. Both Jenkins and CLI jar version same ( 2.7.3) Below is the command used to invoke jenkins using CMD java -jar jenkins-cli.jar -s http://ec2-54-186-237-233.us-west-2.compute.amazonaws.com:8080

Re: How do I use the Jenkins CLI commands for Credentials Plugin?

2016-09-02 Thread Andreas P
the way you load the XML is by pipeing it into the command. e.g.: cat test.xml | java -jar jenkins-cli.jar -s http://localhost:9080/jenkins/ update-credentials-by-xml "SystemCredentialsProvider::SystemContextResolver::jenkins" "(global)" MYTEST it would be nice if the documentation would give h

Re: How to get list of all the plugins installed on jenkins server without cli or without logging in ?

2016-09-02 Thread Alex Domoradov
build-pipeline-plugin:1.5.4 pipeline-input-step:2.1 branch-api:1.10 workflow-durable-task-step:2.4 > Hi , I need to check what are plugins installed on a specific jenkins > server. I tried to use cli but it needs jnlp port which I cannot configure > as i donot have permission. Is there

How to get list of all the plugins installed on jenkins server without cli or without logging in ?

2016-08-31 Thread user_dev
Hi , I need to check what are plugins installed on a specific jenkins server. I tried to use cli but it needs jnlp port which I cannot configure as i donot have permission. Is there a way I can find out this information. I checked config.xml but it do not mentions the list of plugins. -- You

Re: How do I use the Jenkins CLI commands for Credentials Plugin?

2016-08-15 Thread Brandon R
ght not be relevant in your case) Hope this helps some. On Saturday, August 6, 2016 at 12:32:22 AM UTC-7, Vishwanath V wrote: > > Hi all, > > I need to *automatedly* load sets of credentials to a Jenkins instance, > so that my jobs can pick up these credentials. > > Fo

How do I use the Jenkins CLI commands for Credentials Plugin?

2016-08-06 Thread Vishwanath V
Hi all, I need to *automatedly* load sets of credentials to a Jenkins instance, so that my jobs can pick up these credentials. For this purpose I am using the Jenkins CLI, specifically the set of commands provided by the Credentials Provider plugin: create-credentials-by-xml Create

Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-05 Thread Daniel Beck
> On 04.08.2016, at 22:09, James Richard wrote: > > This is a plugin that I have created, it is not bundled with Jenkins. And > like I said, manually installing it, downgrading, uninstalling, etc. works > fine when they are done manually but when using the Jenkins CLI it has

Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-04 Thread James Richard
This is a plugin that I have created, it is not bundled with Jenkins. And like I said, manually installing it, downgrading, uninstalling, etc. works fine when they are done manually but when using the Jenkins CLI it has the errors I described in the first comment. When installing a plugin

Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-04 Thread niristotle okram
fic version without trouble. There > is only an issue when I use the Jenkins CLI > > Is that plugin bundled with Jenkins? If so, could be > https://issues.jenkins-ci.org/browse/JENKINS-29726 > > > -- > You received this message because you are subscribed to the Google Groups >

Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-04 Thread Daniel Beck
> On 28.07.2016, at 01:36, James Richard wrote: > > Manually uploading the files to the server works fine, I can > upgrade/downgrade and install any specific version without trouble. There is > only an issue when I use the Jenkins CLI Is that plugin bundled with Jenkins?

Re: Jenkins CLI, trouble installing plugin from local hpi

2016-07-27 Thread James Richard
Manually uploading the files to the server works fine, I can upgrade/downgrade and install any specific version without trouble. There is only an issue when I use the Jenkins CLI -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To u

Jenkins CLI, trouble installing plugin from local hpi

2016-07-27 Thread James Richard
Using Jenkins 1.642.4, I installed an older version of my plugin from a local hpi using the Jenkins CLI and did a safe restart. When I try to install a newer version from a local hpi using the Jenkins CLI, http://localhost:8080/pluginManager/installed still shows the older version is

Jenkins Server - trying to run AWS cli script - getting an error

2016-06-27 Thread AboveBeyond
I am running a Jenkins server on Windows server with AWS CLI installed. while trying to run a script through Jenkins job i get the following error: "You must specify a region. You can also configure your region by running "aws configure"." AWS cli is configured (running

Jobs created via CLI fail to get started by a timer trigger

2016-03-08 Thread 'Chris' via Jenkins Users
template's config.xml, replaces the placeholders with the concrete parameters and sends the resulting string via the Jenkins CLI to creates a new job. Now the problem: Some of those job templates contain timer triggers (e.g. 'H H(4-5) * * *' to start every night between 4 and 5). Jo

Re: Jenkins CLI

2016-02-26 Thread Hector Magnanao
7;m using my own login and password. Do I have to run the command in the > same directory as the build jobs ? > > On Thursday, February 25, 2016 at 12:29:23 PM UTC-6, James Nord wrote: >> >> >> On Wednesday, February 24, 2016 at 4:21:36 PM UTC, Hector Magnanao wrote: &

Re: Jenkins CLI

2016-02-26 Thread Hector Magnanao
x27;m trying to use the Jenkins CLI in Windows by issuing the command: java >> -jar Jenkins-cli -s build 'test' >> and it keeps returning an error saying no such job ''test'' >> >> > My guess would be not specifying any credentials and a

Re: Jenkins CLI

2016-02-25 Thread James Nord
On Wednesday, February 24, 2016 at 4:21:36 PM UTC, Hector Magnanao wrote: > > I'm trying to use the Jenkins CLI in Windows by issuing the command: java > -jar Jenkins-cli -s build 'test' > and it keeps returning an error saying no such job ''test'

Jenkins CLI

2016-02-24 Thread Hector Magnanao
I'm trying to use the Jenkins CLI in Windows by issuing the command: java -jar Jenkins-cli -s build 'test' and it keeps returning an error saying no such job ''test'' I know that the job exists so can someone tell me what I could be doing wrong ? -- You re

Re: Delete-builds via jenkins-cli when jobs are organized by CloudBees Folder Plugin

2016-01-25 Thread Jonathan Álvarez
Hi Ramón, I have tried with one example. Let´s assume that we have a job "testtest" inside a first level "job_folder_test" folder and inside a second level "sub_folder_item name" folder. Please, notice that the name of this folder has a space. I used the following command to delete the jobs 1 a

Why doesn't Jenkins authenticate with a key provided on the cli?

2016-01-20 Thread Wayne Werner
I have Jenkins setup with the Bitbucket OAuth plugin for security. I'm using SaltStack to setup Jenkins <https://github.com/saltstack-formulas/jenkins-formula>, which uses the Jenkins CLI jar to interface with Jenkins. Obviously when Jenkins has zero security this works jst fin

Authenticating jenkins-cli using crowd2 Plugin

2016-01-07 Thread Robert Szentmihalyi
Hi, I ran into a problem trying to use jenkins-cli with Atlassian Crowd authentification (using the crowd2 plugin. As soon as I set the security realm (using a Groovy script from a Chef recipe), Jenkins throws tons of like this: Jan 07, 2016 1:50:46 PM hudson.TcpSlaveAgentListener

Re: How to pass a multiline parameter to jenkins cli build

2015-12-14 Thread DGaudet
t /reuse/ip /main/LATEST* *> element /reuse/ip/file.txt /main/LATEST'* Then, test it out using echo with double quotes around the variable as: *echo "$mycs"* Once formatted as wanted, simply pass in the variable to the Jenkins CLI to be used on the other side like this: *java -j

How to pass a multiline parameter to jenkins cli build

2015-12-11 Thread Denis Gaudet
xpecting the "\n" to have been expanded, but, it wasn't ;( How else can I get multiple lines trough the CLI interface? Thanks in advance for your help! Denis -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscrib

Using jenkins-cli to connect slave to master

2015-11-19 Thread uscengineer
I used cloudbees for a bit with multiple on premise executors. To connect the nodes we added the ssh key to our cloudbees account and then ran the following command from the node machine: java -jar jenkins-cli.jar -s https://test1234.ci.cloudbees.com on-premise-executor -fsroot /usr/share/jenkin

  1   2   3   >