How to get workspace of jenkins pipeline plugin job (WorkflowRun object java API )
问题 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. this call return null: hudson.model.Run#getExecutor()