Feels like this could be done as a when condition utilizing https://github.com/jenkinsci/workflow-support-plugin/pull/78 - in post usage, you could do a script block and check the currentBuild.getBuildCauses() list for what you care about.
This feature was implemented using run.getCauses() within a script in Utils.groovy
Merged, will be in 1.3.4.
Andrew Bayer Is this documented somewhere? How do we use this? Thanks!
Costin Caraivan, you can check the documentation here: https://jenkins.io/doc/book/pipeline/syntax/#declarative-pipeline
And an example is:
when { triggeredBy 'SCMTrigger' }
or TimerTrigger
Bulk closing resolved issues.