REPOST: Simple build wrapper env variable setup

8 views
Skip to first unread message

Nikhil Bhoski

unread,
Mar 6, 2020, 9:44:36 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