Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Jesse Glick
On Fri, Aug 28, 2015 at 6:11 AM, Vinodhini Vijay wrote: > CustomBuildWrapper doesn't have any GUI Does not matter, it should still offer a `config.jelly`: -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Vinodhini Vijay
Thank you! If ,config.jelly is not present for CustomBuildWrapper (extends SimpleBuildWrapper), the below exception is thrown for Workflow job . No exception if used via FreeStyleProject Aug 28, 2015 3:36:26 PM hudson.widgets.RenderOnDemandClosure$1 generateResponse WARNING: Failed to evaluate

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Robert Sandell
use run.getParent() instead. /B On Fri, Aug 28, 2015 at 11:34 AM, Vinodhini Vijay wrote: > > Thank you all!! :) Is it valid to use the below to get the > AbstractProject or Project or WorkFlowJob? > > SubTask currentExecutable = > run.getExecutor().getCurrentExecutable().getParent(); > > Than

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Vinodhini Vijay
Thank you all!! :) Is it valid to use the below to get the AbstractProject or Project or WorkFlowJob? SubTask currentExecutable = run.getExecutor().getCurrentExecutable().getParent(); Thanks! On Friday, 28 August 2015 13:36:05 UTC+5:30, Daniel Beck wrote: > > > On 28.08.2015, at 06:20, Vin

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Mads Nielsen
Haha..just noticed that too...the case of not being able to see the forrest because of all the trees! :) [image: ] Mads Nielsen Consultant m...@praqma.net +45 50 98 18 09 <+45%2050%2098%2018%2009> Skype: inkspot Praqma www.praqma.com Alle

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Robert Sandell
I.e. you have it right in front of you :) public void setUp(Context context, Run run,* FilePath workspace*, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) On Fri, Aug 28, 2015 at 10:05 AM, Daniel Beck wrote: > > On 28.08.2015, at 06:20, Vinodhini Vijay > wrote: > > > I

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Daniel Beck
On 28.08.2015, at 06:20, Vinodhini Vijay wrote: > I had overridden the method : > > public void setUp(Context context, Run run, FilePath workspace, > Launcher launcher, TaskListener listener, EnvVars initialEnvironment) > throws IOException, InterruptedException > > But, how to

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-27 Thread Mads Nielsen
You can get the Workspace from the run object by doing run.getExecutor().getCurrentWorkspace(). Since you're a build wrapper you have a footprint just after checkout of workspaceso you should have a workspace at that point in the run object. [image: __

Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-27 Thread Vinodhini Vijay
Hello All, I would like to get the workspace of the Run object. To make workflow compatible, my custom build wrapper class extends SimpleBuildWrapper. I had overridden the method : public void setUp(Context context, *Run* run, FilePath workspace, Launcher launcher, TaskListener listener, Env