Jenkins "Execute Shell Script" vars needed in post-build action specifically in send email body? -


so set vars in execute shell script build action use in post-build action send email's body. possible without using plugins? if not possible without plugins plugins should use? much,

not possible without plugins because:

  • execute shell script , post-build actions run in separate environment sessions, had been set in former not available in latter.

what need envinject plugin.

  • in execute shell script step, instead of setting environment variable, write key-value pair file, example myvar=somevalue.
  • add build step, called inject environment variables job. give location of file key-value pair.
  • now variable available environment variable rest of job run (including other build steps , post-build steps).

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -