In the java API, I can access to the workspace path from the Run.java 
object: (Until today, all objects were instance of 
hudson.model.AbstractBuild)

hudson.model.AbstractBuild#getWorkspace()
hudson.model.Run#getExecutor().getCurrentWorkspace()

In Pipeline plugin I don’t have an access to the workspace, the run object 
is instance of org.jenkinsci.plugins.workflow.job.WorkflowRun and this 
object doesn’t link to any workspace.

also, this call return null: 
hudson.model.Run#getExecutor().getCurrentWorkspace()

how can I get it?



(in other words: I need an access from my plugin (java plugin), during 
hudson.model.listeners.RunListener flow. 
 I'm working with the back-end objects: WorkflowRun.java and FlowNode.java. 
and need an access point from those classes)

-- 
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/38a85d4a-9618-435b-89c5-89bb4d4be9ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to