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
Post a Comment