Hi Jesse,

I tried above and it I can set the tool in PATH variable through my 
SimpleBuildWrapper however i can successfully use the PATH only with bat() 
or sh() step 
the tool is not getting invoked through my Builder class which basically 
uses a launcher to invoke a script file which invokes the tool from shell . 
The problem i see is PATH is not available in my builder class. Do you 
think it could be a bug on Jenkins that PATH variable is not applicable to 
the Process launched in Builder class even if the Builder class implements 
the SimpleBuildStep . Also let me know if i could resolve it by writing 
separate pipeline step instead using  SimpleBuildStep. 

Thanks & Regards
Nikhil

On Tuesday, 17 March 2020 21:59:13 UTC+5:30, Jesse Glick wrote:
>
> On Tue, Mar 17, 2020 at 10:35 AM Jesse Glick <[email protected] 
> <javascript:>> wrote: 
> > It works in other plugins. 
>
> Tips: 
>
> https://jenkins.io/doc/developer/extensions/jenkins-core/#buildwrapper 
>
> https://github.com/jenkinsci/ant-plugin/blob/9b28f6f43a5750cf3f9b188dd52adce57e17606c/src/main/java/hudson/tasks/AntWrapper.java#L82-L116
>  
>
> https://github.com/jenkinsci/ant-plugin/blob/9b28f6f43a5750cf3f9b188dd52adce57e17606c/src/main/java/hudson/tasks/Ant.java#L393-L397
>  
>
> https://github.com/jenkinsci/ant-plugin/blob/9b28f6f43a5750cf3f9b188dd52adce57e17606c/src/test/java/hudson/tasks/AntWrapperTest.java#L77-L83
>  
>

-- 
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/eb3d98b1-082a-42fb-b8c4-51dfa4631bc8%40googlegroups.com.

Reply via email to