Hi

To know who triggered a buildflow job  I tried to print the BUILD_CAUSE env 
variable in the following ways:

1. println "BUILD_CAUSE = $BUILD_CAUSE"
    build failed - error:

  ERROR: Failed to run DSL Script
  groovy.lang.MissingPropertyException 
<http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>:
 No such property: BUILD_CAUSE for class: Script1


2. println build.properties["environment"]["BUILD_CAUSE"]
    build passed - output is null

What is the right way to get the BUILD_CAUSE in Build Flow job?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56101940-6037-4a99-9b51-702f631e328a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to