Timeline for How can I add a when clause for a specific upstream trigger in a Jenkins declarative pipeline?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 24, 2021 at 13:34 | comment | added | c32hedge |
The second idea is interesting, but the way our jobs are currently structured I have the upstream triggers defined in the downstream job, rather than using a build step in the upstream jobs. I might try using the first approach at the start of my job and setting some environment variables based on each upstream cause found, so that I can look at those in a when for each stage.
|
|
Feb 23, 2021 at 17:53 | history | answered | jayhendren | CC BY-SA 4.0 |