Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

john levin
Hello Team,

Shall we put a if condition in post build actions to trigger other jobs if condition matches.

Say for example

If date matches Wednesday, trigger the other job in post build actions.

/John


--
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 email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAGJXh7rapeQOcK_NuW1UYpre%3DM5kE%3DKaG0bX47LsTwBz_M_WNg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

Ven H
Yes. You can, but remember to put your if condition inside a script element.

Regards,
Venkatesh


On Wed, Oct 7, 2020 at 1:15 PM john levin <[hidden email]> wrote:
Hello Team,

Shall we put a if condition in post build actions to trigger other jobs if condition matches.

Say for example

If date matches Wednesday, trigger the other job in post build actions.

/John


--
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 email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAGJXh7rapeQOcK_NuW1UYpre%3DM5kE%3DKaG0bX47LsTwBz_M_WNg%40mail.gmail.com.

--
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 email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erU4%2B9gwuD1PKzLQM_8OjJM_F9rACRCOYh2XowQv154tg%40mail.gmail.com.