当前位置: 动力学知识库 > 问答 > 编程问答 >

Jenkins Using Variables in multiple build steps

问题描述:

So I'm curious to know if, when setting up a Jenkins project, it is possible to use a variable defined in build step A in build step B, when using multiple types of build steps?

Example:

So would the above scenario be possible in Jenkins? If so what would the syntax be?

Thanks!!

网友答案:

Your solution will not work because your variable is only set for the first shell build step.

You must install the EnvInject Plugin and use the following configuration:

Next, the variable should be define for your build steps.

分享给朋友:
您可能感兴趣的文章:
随机阅读: