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 c

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

2022-05-03 Thread Alex Earl
I am not the developer of the sshd plugin, but I would definitely file a bug. On Tue, May 3, 2022 at 1:27 PM G Dameron wrote: > Upon further investigation, the culprit turns out to be the sshd plugin > , which we upgraded to v3.1.0 at the > same time as the core

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

2022-05-03 Thread G Dameron
Upon further investigation, the culprit turns out to be the sshd plugin , which we upgraded to v3.1.0 at the same time as the core. Downgrading sshd to to 3.0.3 (the detached version in the 2.332.1 war) restores the correct behavior (no hangs). All sshd version

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 "console" beh

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-j

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

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

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 > jobName

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: Jenkins CLI with http protocol does not respond in 2.81

2017-10-05 Thread Riccardo Foschia
After some research we found the problem: it was the anti-virus software because it damaged the HTTP responses. After disabling the HTTP scanning feature everything worked fine. Thanks to all for their help! Am 04.10.2017 um 13:50 schrieb Riccardo Foschia: Hi all, after an upgrade of Jenkin

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

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

2017-10-04 Thread Devin Nusbaum
Do you see any errors in the logs on the Jenkins server, and is the jenkins-cli.jar you are using from your 2.81 instance? You can download a fresh jar from http://YOUR_HOST/jenkins/jnlpJars/jenkins-cli.jar. (If you aren’t using the /jenkins context path just http://YOUR_HOST/jnlpJars/jenkins-cl

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 a few

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 seconds the call returns but > sh

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 http://

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 err

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 ar

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: 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: 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 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

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

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
Hey folks, I'm trying to pass a multiline parameter to a build from a BASH command line. My command looks like this: /java -jar ~/files/jenkins-cli.jar -s http://  build -s 'Fundamental/math-flex' -p DESCRIPTION="$mydesc" -p configspec_elements="$mycs"/ I have exported both variables as: /expor

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

Re: jenkins-cli and cas

2015-10-26 Thread Scott Williams
ins. > > I need to set up an acces for administrator without using cas, using > > jenkins cli... is it possible? > > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH > > -Jesse > > -- > There are 10

Re: SSH keypair not working for Jenkins CLI

2015-09-18 Thread Eric Fetzer
gt; Ben > > On Fri, Sep 18, 2015 at 12:55 PM, Eric Fetzer > wrote: > > Just tried Victor, no such luck: > > > > $ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s > http://myserver:8080/ -i > > /cygdrive/c/CYGWIN/home/efetzer/.ssh/id_rsa who-am-i >

Re: SSH keypair not working for Jenkins CLI

2015-09-18 Thread Benjamin Lau
r/.ssh/id_rsa who-am-i > No such file exists: \cygdrive\c\CYGWIN\home\efetzer\.ssh\id_rsa > Jenkins CLI > Usage: java -jar jenkins-cli.jar [-s URL] command [opts...] args... > Options: > -s URL : the server URL (defaults to the JENKINS_URL env var) > -i KEY : SSH private ke

Re: SSH keypair not working for Jenkins CLI

2015-09-18 Thread Eric Fetzer
Just tried Victor, no such luck: $ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s http://myserver:8080/ -i /cygdrive/c/CYGWIN/home/efetzer/.ssh/id_rsa who-am-i No such file exists: \cygdrive\c\CYGWIN\home\efetzer\.ssh\id_rsa Jenkins CLI Usage: java -jar jenkins-cli.jar [-s URL] command [opts

Re: SSH keypair not working for Jenkins CLI

2015-09-18 Thread Eric Fetzer
do this all over the place with ssh. > Jenkins-cli.jar seems a bit confused to me. Please take a look at my > output: > > $ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s http://myserver:8080/ > -i /home/efetzer/.ssh/id_rsa who-am-i > No such file exists: \home\efetzer\.ssh\

Re: SSH keypair not working for Jenkins CLI

2015-09-18 Thread Victor Martinez
http://myserver:8080/ > -i /home/efetzer/.ssh/id_rsa who-am-i > No such file exists: \home\efetzer\.ssh\id_rsa > Jenkins CLI > Usage: java -jar jenkins-cli.jar [-s URL] command [opts...] args... > Options: > -s URL : the server URL (defaults to the JENKINS_URL env var) > -i

SSH keypair not working for Jenkins CLI

2015-09-18 Thread Eric Fetzer
/home/efetzer/.ssh/id_rsa who-am-i No such file exists: \home\efetzer\.ssh\id_rsa Jenkins CLI Usage: java -jar jenkins-cli.jar [-s URL] command [opts...] args... Options: -s URL : the server URL (defaults to the JENKINS_URL env var) -i KEY : SSH private key file used for authentication

Jenkins CLI Connection Issue

2015-08-11 Thread Jayesh Gohil
Hi, I am trying to call Jenkins client within Jenkins job. However just not been able to get this to work. The id_rsa & id_rsa.pub files exists for Jenkins user which is a machine user. We have set up LDAP authentication with role based security. I can;t figure out why Jenkins will not connec

Re: Jenkins-cli never respond

2015-06-26 Thread Anthony Green
> > > Everybody is right :) The CLI client automatically discovers the JNLP > port and communicates via that. So, as Richard mentions, you don't need > to know the JNLP port — you just provide the regular Jenkins web URL > when running the CLI client command. > Except perhaps your container

Re: Jenkins-cli never respond

2015-06-25 Thread Christopher Orr
On 25/06/15 19:50, Anthony Green wrote: On Wednesday, 24 June 2015 10:38:05 UTC+1, Richard Bywater wrote: The CLI doesn't use the JNLP port - you need to point it at the normal web port (e.g. 8080) Are you sure? What I've read regarding setting up Jenkins in a Docker suggests that's

Re: Jenkins-cli never respond

2015-06-25 Thread Anthony Green
On Wednesday, 24 June 2015 10:38:05 UTC+1, Richard Bywater wrote: > > The CLI doesn't use the JNLP port - you need to point it at the normal web > port (e.g. 8080) >> >> >> Are you sure? What I've read regarding setting up Jenkins in a Docker suggests that's exactly what it uses. -- You recei

Re: Jenkins-cli never respond

2015-06-24 Thread Stephane Polit
I have done what is explained in the wiki If i try with port 8080 i have no response on command prompt but i think that i am not connected because on the server log i found Stephan

Re: Jenkins-cli never respond

2015-06-24 Thread Richard Bywater
The CLI doesn't use the JNLP port - you need to point it at the normal web port (e.g. 8080) Richard. On Wed, 24 Jun 2015 at 21:31 wrote: > Hello > I am working with Jenkins 1.617 installed on a windows 2003 server. My pc > is windows7. From my pc i have check that the tcp port 49187 is listenin

Jenkins-cli never respond

2015-06-24 Thread spgpama
Hello I am working with Jenkins 1.617 installed on a windows 2003 server. My pc is windows7. From my pc i have check that the tcp port 49187 is listening. When I run a command fro

Re: Jenkins CLI not working OSX

2015-06-23 Thread Richard Bywater
So I've just tried it and it seems to be working for me. Is your Mac Firewall traffic blocking traffic from the Java application or something odd like that? Richard. On Tue, 23 Jun 2015 at 17:19 Anthony Green wrote: > On Monday, 22 June 2015 10:14:55 UTC+1, Richard Bywater wrote: >> >> I assume

Re: Jenkins CLI not working OSX

2015-06-22 Thread Anthony Green
On Monday, 22 June 2015 10:14:55 UTC+1, Richard Bywater wrote: > > I assume Jenkins has been started? (Not sure if downloading via Homebrew > automatically starts it) > > Richard > Jenkins is running, responding 200 to http requests -- You received this message because you are subscribed to th

Re: Jenkins CLI not working OSX

2015-06-22 Thread Richard Bywater
I assume Jenkins has been started? (Not sure if downloading via Homebrew automatically starts it) Richard. On Mon, 22 Jun 2015 at 20:24 Anthony Green wrote: > Steps to reproduce > > 1. Install Jenkins via Homebrew > 2. Download jenkins-cli.jar - > 3. run > > java -jar jenkins-cli.jar -s htt

Jenkins CLI not working OSX

2015-06-22 Thread Anthony Green
Steps to reproduce 1. Install Jenkins via Homebrew 2. Download jenkins-cli.jar - 3. run java -jar jenkins-cli.jar -s http://localhost:8080/ help response: Enter passphrase for /Users/jenkins/.ssh/id_rsa: Exception in thread "main" java.io.IOException: There's no Jenkins running at http://

Re: Got "no such job" when trigger a build with jenkins-cli 1.525 as an administrator permission after enable LDAP and role strategy security

2015-05-04 Thread Daniel Beck
gt; > > > On Thursday, September 5, 2013 at 9:58:22 PM UTC-5, viola lu wrote: > I have setup a jenkins server and enable LDAP and role strategy security. I > can build jobs in UI as administrator account. But if i trigger builds via > jenkins-cli , it failed, and reported an error&quo

Re: Got "no such job" when trigger a build with jenkins-cli 1.525 as an administrator permission after enable LDAP and role strategy security

2015-05-04 Thread David Dominguez
t 9:58:22 PM UTC-5, viola lu wrote: > > I have setup a jenkins server and enable LDAP and role strategy security. > I can build jobs in UI as administrator account. But if i trigger builds > via jenkins-cli , it failed, and reported an error" no such job ." > > icap@i

jenkins cli login help please

2015-05-01 Thread Cote, Marlene
I have tried every combination I can think of to get the cli login command to work, and it just won't. Do you know of any issues with this? I have the latest Jenkins version, with plugins for ssh and active domain. - Marlene Cote Consulting Release Engineer +1 (978) 9

Jenkins CLI + PAM auth?

2015-04-03 Thread Jackson Murtha
Does anyone have both PAM auth + jenkins CLI working? I had successfully been using jenkins cli like this: ` java -jar jenkins-cli.jar -i path/to/key command ` Now I switched to PAM auth, and login works from the admin area, but CLI quit working (stderr output below). I also tried using the

Re: Configure Plugins via Jenkins CLI

2014-10-17 Thread corneil.duples...@gmail.com
You can create or update the config.xml file for a job directly and use CLI to reload the config. You can write scripts that extend the CLI by making new command available and that script can access all aspects of the Jenkins configuration etc. On 15 October 2014 21:26, Stuart Milton wrote: > H

Configure Plugins via Jenkins CLI

2014-10-15 Thread Stuart Milton
Hi Guys, I've been working with Jenkins for a while now, but am now trying to create a script to install Jenkins/Sonar etc to slowly work towards an automated CI Server Build. Anyway, I've added plugins via the CLI (sonar,Email-ext,sbt), wondered if its possible to configure these via a script

Jenkins CLI usage when authentication mechanism is Active Directory

2014-09-02 Thread Maneesh M P
Hello, I am using active directory as jenkins authentication mechanism. When I am trying to use Jenkins CLI from my build, I am getting the ssh authentication error. java -jar jenkins-cli.jar -s http://jenkins.abc.com/ help*12:08:59* Failed to authenticate with your SSH keys. I can&#

Jenkins CLI to create user-specific view

2014-08-25 Thread Luca Abbati
Hi all, I know how to create a new view via the CLI interface, but is it possibile to add a view to a specific user, so that it appears in user's "My Views"? I googled it, but no luck so far. Thanks, luca -- You received this message because you are subscribed to the Google Groups "Jenkins Us

RE: authentication, Jenkins CLI, and Windows

2014-06-26 Thread Ginga, Dick
: jenkinsci-users@googlegroups.com Subject: Re: authentication, Jenkins CLI, and Windows First, you can always setup ssh on Windows using CygWin<https://www.cygwin.com/install.html> I'm confused on the rest of your problem as I don't understand how your system is set up. How ar

Re: authentication, Jenkins CLI, and Windows

2014-06-25 Thread Gavin Goodrich
anything and I discovered that my small use of > jenkins-cli now fails: > > > > # > > # set the build display name > > # > > > > C:\Program Files (x86)\Jenkins\jobs\Set-Build-Display-Name\workspace>java > -jar \Jenkins\jenkins-cli.jar -s http://Jenki

authentication, Jenkins CLI, and Windows

2014-06-25 Thread Ginga, Dick
OK, so I should have been paying attention to all those SSH emails. I just enabled LDAP authentication on my Jenkins server today allowing anyone logged in to do anything and I discovered that my small use of jenkins-cli now fails: # # set the build display name # C:\Program Files

Re: jenkins-cli stop working on ubuntu 14.04

2014-06-25 Thread corneil.duples...@gmail.com
m old server ubuntu 12.04 > Everything works ok except jenkins-cli. Jenkins-cli hangs and jenkins > produces following error in jenkins.og > > I look for similar problem in google but found nothing interesting. > > java -jar jenkins-cli.jar -s http://192.168.168.3:8090/ hel

jenkins-cli stop working on ubuntu 14.04

2014-06-24 Thread magnus
Hi List I have jenkins installed from apt as described here https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu I copied my configuration and all jobs from old server ubuntu 12.04 Everything works ok except jenkins-cli. Jenkins-cli hangs and jenkins produces following error

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

2014-06-23 Thread Ramón Manjavacas Ortiz
Hi, I'm trying to delete a range of builds via jenkins-cli.jar and the jobs are organized in folders via the CloudBees Folder Plugin. For example: folder1/job1. The command line is: java -jar jenkins-cli.jar -s http:///jenkins delete-builds '10-100' --username --password My q

jabber plugin - not sending when project created with jenkins-cli

2014-06-18 Thread Tim Williams
I'm seeing an odd behavior with the Jabber Notifier plugin. When I create a project through the jenkins cli, I don't get any jabber notifications. If I then go to the "Configure" page through the UI and don't change *any* settings, simply click Save, then build, I st

Problems with installing plugins with jenkins CLI.

2014-01-31 Thread n3phele . poadev
Hi. I was trying to install some plugins using only terminal command lines. I have downloaded the jenkins cli and i'm using the following command line to try to install a plugin. sudo java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ install-plugin android-emulator.jpi When using

jenkins-cli cannot safe-restart if security is true

2014-01-31 Thread Marko Lisica
I have just set up fresh Jenkins machine. Before enabling security I could use > java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart. >> > Then I have enabled security and if I do > java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart --username >> user.name --passwo

Re: jenkins cli giving an error

2014-01-21 Thread Yardena Meymann
I would guess that the second error is caused by an invalid patch file On Mon, Jan 20, 2014 at 1:27 PM, Jon wrote: > Hi , > > yes we have both the build steps in the build. > 1) review parameter > 2) notify reviewboard > > one more point when i am trying build with j

Re: jenkins cli giving an error

2014-01-20 Thread Jon
t;a review parameter"? > > HTH, > Yardena > > On Monday, January 13, 2014 12:13:51 PM UTC+2, Jon wrote: >> >> Hi while executing an jenkins cli i am getting below error: >> >> FATAL: nulljava.lang.NullPointerException >> <http:

Re: jenkins cli giving an error

2014-01-20 Thread Jon
Hi , yes we have both the build steps in the build. 1) review parameter 2) notify reviewboard one more point when i am trying build with jenkins cli with patch parameter as a plugin (patch file as a parameter) i am getting below eror: Applying a patch <http://jenkins.engba.symantec.com:8

Re: jenkins cli giving an error

2014-01-18 Thread Yardena
Hi Jon, Is it possible that you have a "notify reviewboard" step in the build, but do not have "a review parameter"? HTH, Yardena On Monday, January 13, 2014 12:13:51 PM UTC+2, Jon wrote: > > Hi while executing an jenkins cli i am gett

jenkins cli giving an error

2014-01-13 Thread Jon
Hi while executing an jenkins cli i am getting below error: FATAL: nulljava.lang.NullPointerException <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException> at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardNotifier.notifyReviewboard(ReviewboardNotifie

Using jenkins-cli with an API token

2013-12-06 Thread Noah Kantrowitz
I have my Jenkins server setup to use OpenID for authentication. I'm trying to get remote nodes setup as builders, but I keep hitting authentication issues. The normal API can use API tokens via HTTP Authentication, however jenkins-cli no longer appears to directly support this. There is

java.io.EOFException from Jenkins CLI

2013-10-13 Thread Zvika Idelsberg
Hi, We are using jenkins 1.534. We tried to run this from command line on Ubuntu: java -jar jenkins-cli.jar -s Myserver:8080/ help The error we get is: Exception in thread "main" java.io.EOFException at java.io.DataInputStream.readBoolean(DataInputStream.java:244) at hudson.cli.Connection.readBool

Got "no such job" when trigger a build with jenkins-cli 1.525 as an administrator permission after enable LDAP and role strategy security

2013-09-05 Thread viola lu
I have setup a jenkins server and enable LDAP and role strategy security. I can build jobs in UI as administrator account. But if i trigger builds via jenkins-cli , it failed, and reported an error" no such job ." icap@icap-build-linux-5:/icap/jazz_build/build/Core_Sonar/ant_build/

Manually defining jenkins cli port

2013-07-31 Thread Rui Fernando Hayashi
Hi I'm using the OpenID plugin for authentication. I'm trying to use the CLI, but I get this error: "Exception in thread "main" java.io.IOException: No X-Jenkins-CLI2-Port among [null, Vary, Date, Content-Length, Keep-Alive, Set-Cookie, Connection, Content-Type, Server]" As far as I understood,

Re: Jenkins cli copy command not working

2013-07-30 Thread suresh
n >>> >>> -- >>> 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 [hidden >>> em

Re: Jenkins cli copy command not working

2013-07-30 Thread Richard Bywater
be from this group and stop receiving emails from it, send an >> email to [hidden >> email]<http://user/SendEmail.jtp?type=node&node=4675085&i=0>. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >&g

Re: Jenkins cli copy command not working

2013-07-30 Thread suresh
r more options, visit https://groups.google.com/groups/opt_out. > > > > > ---------- > If you reply to this email, your message will be added to the discussion > below: > > http://jenkins-ci.361315.n4.nabble.com/Jenkins-cli-copy-command-no

Re: Jenkins cli copy command not working

2013-07-30 Thread Steffen Breitbach
Hi suresh! On Mon, 2013-07-29 at 23:43 -0700, suresh wrote: > Below command i tried but did not work > > >java -jar c:\jenkins.jar -s http://localhost:8181/jenkins copy-job project1 > project2 --username suresh --password suresh It is "jenkins-cli.jar", not "jenkins.jar". Regards Steffen

Jenkins cli copy command not working

2013-07-29 Thread suresh
VAL : File that contains the password Note: project1 exists in jenkins dashboard Please help on this how to resolve Regards, Suresh -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Jenkins-cli-copy-command-not-working-tp4675079.html Sent from the Jenkins users mailing

Jenkins CLI: ssh key and ssh agent

2013-06-14 Thread Reynald Borer
Hi, I'm probably not the only one interested in having Jenkins CLI being able to use an existing ssh agent instead of prompting for the key passphrase at every action. I've had a quick look at the code and haven't found anything about that. Luckily, it seems that the trile

  1   2   >