With System Groovy scripts I can get a reference to the Project which corresponding to the build with:
Thread.currentThread().executable.project With Pipeline I have the currentBuild, but this is an instance of org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper, and the method build() is private and getRawBuild is not allowed in secured environments. How can I get the project corresponding to currentBuild? Is any list of the binding variables passed to the pipeline scripts? Thank you -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" 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-dev/428f1198-ee74-44bb-b4e1-497d82c5c8b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
