parameterized builds - by selecting a parameter Y/N

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

parameterized builds - by selecting a parameter Y/N

pawanpreeteng
Hi All,

I have 3 jobs. A->B->C.  A is upstream and C is downstream. I trigger
jobs based on parameterized trigger (if job is stable). Is there any
way in Hudson to run parameterized build based on option (Y/N) through
a parameter so that when i select N, only job A does not trigger B
even if A is stable.


Thanks
Pawan
Reply | Threaded
Open this post in threaded view
|

Re: parameterized builds - by selecting a parameter Y/N

jrmonk
Hi Pawan,

Not sure if hudson has the ability to decide, based on some condition other than the build result/health, if the downstream job should be fired or not. However, you can always control if actions in job B are to be performed or not by checking for a parameter in the build section on job configuration page.

Regards,
Kamlesh




On Thu, Dec 30, 2010 at 1:17 AM, Pawan <[hidden email]> wrote:
Hi All,

I have 3 jobs. A->B->C.  A is upstream and C is downstream. I trigger
jobs based on parameterized trigger (if job is stable). Is there any
way in Hudson to run parameterized build based on option (Y/N) through
a parameter so that when i select N, only job A does not trigger B
even if A is stable.


Thanks
Pawan



--
Faith waiting in the heart of a seed promises a miracle of life which it can not prove!
-Ravindranath Tagore
Reply | Threaded
Open this post in threaded view
|

Re: parameterized builds - by selecting a parameter Y/N

pawanpreeteng
Thanks Kamlesh for quick response.

On Wed, Dec 29, 2010 at 2:52 PM, Kamlesh Mutha <[hidden email]> wrote:
Hi Pawan,

Not sure if hudson has the ability to decide, based on some condition other than the build result/health, if the downstream job should be fired or not. However, you can always control if actions in job B are to be performed or not by checking for a parameter in the build section on job configuration page.

Regards,
Kamlesh




On Thu, Dec 30, 2010 at 1:17 AM, Pawan <[hidden email]> wrote:
Hi All,

I have 3 jobs. A->B->C.  A is upstream and C is downstream. I trigger
jobs based on parameterized trigger (if job is stable). Is there any
way in Hudson to run parameterized build based on option (Y/N) through
a parameter so that when i select N, only job A does not trigger B
even if A is stable.


Thanks
Pawan



--
Faith waiting in the heart of a seed promises a miracle of life which it can not prove!
-Ravindranath Tagore

Reply | Threaded
Open this post in threaded view
|

Re: parameterized builds - by selecting a parameter Y/N

Douglas Borg
Hi Pawan,

You should do your best to make sure that your build fails or is marked unstable if you do not want to trigger a downstream job. There are many other reasons you want to do this, but one is specifically related (I think) to what you want to do; the parameterized trigger plugin has the ability to conditionally trigger the downstream build based upon the current build's status. The trigger condition options are:

Stable
Unstable
Stable or Unstable, but not failed
Failed
Complete (always trigger)

Hope this helps.

Regards,

Douglas Borg
Reply | Threaded
Open this post in threaded view
|

Re: parameterized builds - by selecting a parameter Y/N

Sami Tikka
In reply to this post by pawanpreeteng
If this is really important to you, you could stop using Parameterized trigger plugin and in the build script of job A decide if you want to trigger B and do the triggering with e.g. Hudson CLI/wget/curl/some other tool

-- Sami


Pawan <[hidden email]> kirjoitti 29.12.2010 kello 21.47:

> Hi All,
>
> I have 3 jobs. A->B->C.  A is upstream and C is downstream. I trigger
> jobs based on parameterized trigger (if job is stable). Is there any
> way in Hudson to run parameterized build based on option (Y/N) through
> a parameter so that when i select N, only job A does not trigger B
> even if A is stable.
>
>
> Thanks
> Pawan