Jenkins : Report results of intermediate [windows batch] build steps in email body

前端 未结 1 573
眼角桃花
眼角桃花 2020-12-21 04:42

As part of a Jenkins build process we run a couple Windows batch scripts and would like to report some information about these intermediate steps in the email that gets send

相关标签:
1条回答
  • 2020-12-21 05:22

    Environment variables set inside a build step do not propagate outside under the 'normal' circumstances. You can do the following:

    • Install EnvInject Plugin
    • Set environment variables and save them into a property file in the form VAR=VALUE
    • In next build step import the file with EnvInject plugin (after installing the plugin you'll see 'Inject environment variables' among build step options). The variables will be available throughout the build.
    0 讨论(0)
提交回复
热议问题