SimpleBuildWrapper Context.env() does not work in pipeline

11 views
Skip to first unread message

Nikhil Bhoski

unread,
Mar 6, 2020, 1:27:34 AM3/6/20
to Jenkins Developers
Hi ,

I have extended SimpleBuildWrapper Class which basically updated the PATH variable using 

context.env("PATH+mytool",gePathOfTool()+ nodespecificFielspe + "bin")

This works fine when i run it through Freestyle project using jenkins UI . However when i run the same in pipeline sript the builder step does not find the PATH variable at all 

PATH for both conext and build.getEnvironemnt(listener) shows null . any ideaon how can i get the PATH updated during build using my SimpleBuildWrapper ? 

Regards
Nikhil
Reply all
Reply to author
Forward
0 new messages