Re: Env variable in pipeline resolves to null
PS sh('printenv | sort') is also not showing any env var set ... :| -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/daf69d41-066e-44c6-ab9e-5e26a0b0d3af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Env variable in pipeline resolves to null
environment { TEST_PATH = "path/to/any" } // scriptive pipeline withEnv(["TEST_PATH1=path/to/any"]) { echo env.TEST_PATH1 // path/to/any } echo "OOO=${env.TEST_PATH}"; // null echo "UUU=${env.TEST_PATH1}"; // null How could I make an environment varialbe known to the pipeline (tha above didnt work)? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f373bc34-f02f-41b0-95c9-d058dcf1d50f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.