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

13 views
Skip to first unread message

john levin

unread,
Oct 7, 2020, 3:45:05 AM10/7/20
to jenkins...@googlegroups.com
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


Ven H

unread,
Oct 7, 2020, 4:46:59 AM10/7/20
to jenkins...@googlegroups.com
Yes. You can, but remember to put your if condition inside a script element.

Regards,
Venkatesh


--
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.
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 all
Reply to author
Forward
0 new messages