Help us create a new plug-in for Source Square... We are giving away an iPad to the best plug-in!
http://register.sourcesquare.org Thanks, Lamar On Fri, Jun 1, 2012 at 6:38 AM, Arun Kumar <[email protected]> wrote: > Thank you so much OSUBeavBane... That answers all my question.. > > Best Regards, > Arun > > > On Thursday, 31 May 2012 22:24:21 UTC+5:30, OSUBeavBane wrote: >> >> You can do a POST to this url using this. Also, it didn't occur to me >> yesterday but probably a simpler solution is to use the Jenkins CLI. I >> believe the command: >> >> java -jar "{PATH_TO_JENKINS_CLI}\**jenkins-cli.jar" -s "{JENKINS_URL}" >> build {JOB_NAME} (optional: -p PARAMETER_KEY1=** >> PARAMETER_VALUE1 -p PARAMETER_**KEY2=PARAMETER_VALUE2") >> >> -OSUBeavBane >> >> On Thursday, May 31, 2012 2:11:19 AM UTC-7, Arun Kumar wrote: >>> >>> Excellent!! That is exactly i was looking for!!! thanks a bunch >>> OSUBeavBane.. >>> >>> But one more question now.. I found this below.. >>> >>> Perform a build >>> >>> To programmatically schedule a new build, post to* this URL.* If the >>> build has parameters, post to *this URL* and provide the parameters as >>> form data. >>> >>> >>> So i know now that now if i give that url in browser it will trigger the >>> job. But in my job how to invoke it? Does it work if i just give the link >>> address from above? >>> >>> >>> Second question is that if it is parameterised build then they said to >>> provide parameter as form data. what is form data and how to do it? >>> >>> >>> Thanks a lot once again. >>> >>> >>> Regards >>> >>> Arun >>> >>> >>> On Thursday, 31 May 2012 08:44:06 UTC+5:30, OSUBeavBane wrote: >>>> >>>> Hi Arun, >>>> >>>> So, you can launch jobs programatically within another job. So within >>>> your job just set up an if(x=1) launch J2; if(x=2) launch J3; >>>> >>>> For more info on how to programatically launch a job go to >>>> "{JENKINS_URL}/job/{JOB_NAME}/**api". >>>> >>>> -OSUBeavBane >>>> >>>> >>>> >>>> On May 29, 11:03 pm, Arun Kumar <[email protected]> wrote: >>>> > Hi, >>>> > >>>> > I have a requirement to trigger a job depending upon the input >>>> parameter. >>>> > Lets say i have job J1,j2,J3 and J4 >>>> > >>>> > The J1 executes and depending upon the input parameter x on job J1 it >>>> > should trigger either J2 or J3. If the x is 1 it should trigger J2 >>>> and if >>>> > the x is 2 it should trigger J3. >>>> > >>>> > some what like below flow chart >>>> > >>>> > J1 >>>> > x=1 / \ x=2 >>>> > / \ >>>> > J2 J3 >>>> > >>>> > Thanks in advance., >>>> > Arun >>> >>>
