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
--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a77a0301-d4f2-4aa6-91ad-94765cbfda01%40googlegroups.com.
Please stop reposting this same questionI would suggest since its not getting a response, its not something people know very well, and you may need to rethink how your doing it, or looking at other examples of plugins doing similar things.Gavin
On Sun, Mar 8, 2020 at 6:22 PM Nikhil Bhoski <nikhil...@gmail.com> wrote:
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
--
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 jenkin...@googlegroups.com.