Declarative Pipeline: How to get build cause?

21 views
Skip to first unread message

Dallas Clement

unread,
Aug 17, 2017, 2:36:55 PM8/17/17
to Jenkins Users
I would like to be able to determine what triggered a build.  It looks like build cause information is available in currentBuild.rawBuild, but can't access that from the groovy sandbox.  Is there another way from a pipeline?

Baptiste Mathus

unread,
Aug 17, 2017, 2:58:10 PM8/17/17
to jenkins...@googlegroups.com
Hey,
Not yet, you probably want to watch & vote for https://issues.jenkins-ci.org/browse/JENKINS-41272

My 2 cents

2017-08-17 20:36 GMT+02:00 Dallas Clement <dallas.a...@gmail.com>:
I would like to be able to determine what triggered a build.  It looks like build cause information is available in currentBuild.rawBuild, but can't access that from the groovy sandbox.  Is there another way from a pipeline?

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68d815a1-6eec-4ad2-a8e1-fae522eab04d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages