Re: REST api to trigger a job in the build pipeline

2017-03-28 Thread Sony Koithara
Very much curious to know about this.. Was anybdy able to figure out how we can do this ? -Sony Koithara On Tuesday, February 2, 2016 at 5:12:32 PM UTC-8, Ramnath Ananth wrote: > > Yes, I am using the build pipeline plugin and am going through the source > code to see if I can change it to

Re: REST api to trigger a job in the build pipeline

2016-02-02 Thread Michael Neale
Are you using this plugin? https://wiki.jenkins-ci.org/display/JENKINS/Build+Pipeline+Plugin There are a few that do that type of thing, not sure how involved that type of change would be. On Wed, Feb 3, 2016 at 11:28 AM Ramnath Ananth wrote: > Is there a way to tweak

Re: REST api to trigger a job in the build pipeline

2016-02-02 Thread Ramnath Ananth
Yes, I am using the build pipeline plugin and am going through the source code to see if I can change it to accommodate my requirement. On Tue, Feb 2, 2016 at 4:58 PM, Michael Neale wrote: > Are you using this plugin? >

Re: REST api to trigger a job in the build pipeline

2016-02-01 Thread Ramnath Ananth
Yes , thats correct. On Jan 31, 2016 11:26 PM, "Michael Neale" wrote: > Well you certainly can call jobB, but I think you want it to show up in > the plugin visualisation. > > On Mon, Feb 1, 2016 at 5:31 PM Ramnath Ananth > wrote: > >> Yes, for

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Michael Neale
OK I think I understand. So you can trigger jobA (and things work as expected) but sometimes you want to trigger jobB without jobA, but you still want it to show up in the pipeline view you have? I don't think there is a way to do that at the moment, as the pipeline viewer plugins only look

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Ramnath Ananth
Yes, for example imagine job A to be build job for a project and job B is a job to deploy the artifacts archived from job A to a DEV or a UAT environment. Basically I want to deploy artifacts to an environment using job B through the REST api, in which I am not successful so far. Maybe this is

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Michael Neale
Ramnath, some questions: 1) what type of job - freestyle, workflow/pipeline or something else? 2) when you say "trigger a deploy job remotely" - do you mean create the job? or just trigger it to run ? Normally what people do is check "Build after other projects are built" on JobB config (in

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Ramnath Ananth
Hi Michael This is a freestyle job and yes, I am triggering the job to run. I tried your solution to add post build action to trigger job B after job A is triggered through the api and it works. But my use case is to trigger job B not immediately but at any given time. So as of now whenever I

Re: REST api to trigger a job in the build pipeline

2016-01-29 Thread Ramnath Ananth
My question is the same as this discussion https://groups.google.com/d/topic/jenkinsci-users/wbggN5aBHgU/discussion Hope this helps Thanks Ramnath On Friday, January 29, 2016 at 2:27:53 PM UTC-8, Ramnath Ananth wrote: > > Hi Jason. > > I have used the mentioned build with parameters option and

Re: REST api to trigger a job in the build pipeline

2016-01-29 Thread Ramnath Ananth
Hi Jason. I have used the mentioned build with parameters option and it works through REST api. But the build result is not getting reflected in the Build pipeline view. It is still in its original pipeline color and the builds are not getting promoted further. Thanks Ramnath On Friday,

Re: REST api to trigger a job in the build pipeline

2016-01-29 Thread Jason Tran
Maybe this will help: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build Look at 'Launching a build with parameters' http://server/job/myjob/buildWithParameters?PARAMETER=Value On Friday, January 29, 2016 at 10:36:43 AM UTC-8, Ramnath Ananth wrote: > > Hello, > > I am trying to

REST api to trigger a job in the build pipeline

2016-01-29 Thread Ramnath Ananth
Hello, I am trying to trigger a deploy job remotely using REST api and so far I couldn't find any api which would know if the job is linked to the pipeline or not. I want to trigger a build job A. After successful completion of job A , I want to trigger deploy job B. But there is no api to