How to pass multiple parameters to jenkins cli build

2,804 views
Skip to first unread message

mallikarjunece

unread,
Apr 18, 2013, 8:52:51 AM4/18/13
to jenkins...@googlegroups.com
Hi, I want to trigger jenkins build from remote server using jenkins-cli with multiple parameters , like java -jar jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 KEY2=VAL2 ... Is it possible ? please let me know. Thanks in advance... Mallikarjuna

View this message in context: How to pass multiple parameters to jenkins cli build
Sent from the Jenkins users mailing list archive at Nabble.com.

Stanley, Jason

unread,
Apr 18, 2013, 10:40:24 AM4/18/13
to jenkins...@googlegroups.com

Yes.

 

java -jar Jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 -p KEY2=VAL2 -p KEY3=VAL3

--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mallikarjunece

unread,
Apr 19, 2013, 6:33:19 AM4/19/13
to jenkins...@googlegroups.com
How to pass user name

java -jar Jenkins-cli.jar -s JENKINS_URL build JOB_NAME
--username=<USER_NAME>



--
View this message in context: http://jenkins.361315.n4.nabble.com/How-to-pass-multiple-parameters-to-jenkins-cli-build-tp4663381p4663545.html

mallikarjunece

unread,
Apr 19, 2013, 6:30:53 AM4/19/13
to jenkins...@googlegroups.com

Hi,

How to supply build started by user for jenkins cli build ???


Is there any provision for this ???


Please let me know..

Thanks in advance ...
Mallikarjuna
---- On Thu, 18 Apr 2013 20:11:03 +0530 Jason [via Jenkins] Stanley <[hidden email]> wrote ----

Yes.

 

java -jar Jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 -p KEY2=VAL2 -p KEY3=VAL3

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of mallikarjunece
Sent: Thursday, April 18, 2013 8:53 AM
To: [hidden email]
Subject: How to pass multiple parameters to jenkins cli build

 

Hi, I want to trigger jenkins build from remote server using jenkins-cli with multiple parameters , like java -jar jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 KEY2=VAL2 ... Is it possible ? please let me know. Thanks in advance... Mallikarjuna


View this message in context: click here.
NAML




View this message in context: RE: How to pass multiple parameters to jenkins cli build

Stanley, Jason

unread,
Apr 22, 2013, 9:43:49 AM4/22/13
to jenkins...@googlegroups.com

--username <USERNAME>  --password-file /path/to/file/Password.txt

--

Reply all
Reply to author
Forward
0 new messages