Hi,

Having finally got the core of my try-before-commit project working, I'm 
shortly going to move on to the building of committed projects.

Since I have multiple branches of some projects, the Multibranch pipeline 
looks like a good solution (having multiple projects all using the same 
framework, it would be nice if I could use organization folders, but I'm 
using Mercurial).

Anyway, my script needs information about the build for reporting purposes, 
such as which branch, which revision.

It woud seem that some of that is in the scm object, but how do I get 
access to the actual values stored there?

scm.revision result in the error

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts 
not permitted to use method hudson.plugins.mercurial.MercurialSCM getRevision


In fact I can see that sandboxing is going to be an issue, if there a way for 
things to NOT run in a sandbox if I'm using jenkins files?


regards

Jon

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c5198817-a01b-4a0a-8a04-7d1ac357c791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to