So I set up some vars in Execute Shell Script build action which I would like to use in my post-build action like send email's body. Is this possible without using any plugins? If not possible without plugins what are the plugins that I should use? Thanks very much,
Not possible without plugins because:
What you need is the EnvInject plugin .
myvar=somevalue
. You can set any environment variable using the " Generate environment variables from script" by using: echo "MY_VAR=$SOME_VAR"
Then this variable is available through the entire jenkins job process. at any shell/ batch command and even at the mail or any other plugin.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.