I wonder the recommended way for an item in jenkins data model to access
his "parent"

for sample : SCM to retrieve related Job

Stapler.getCurrentRequest().getAncestorInPath(class) is the sole option
I've found so far, bu assumes a web request.

I don't think there's a better option, and wonder stapler and xstream
deserializers could support some @Ancestor annotation to inject the parent
object

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to