[英]How to pass environment variable to downstream job?
Edit: Nevermind, this isnt the issue here. 编辑:没关系,这不是这里的问题。 Try $JOB_A_VERSION
or ${JOB_A_VERSION}
un unix-like systems. 尝试$JOB_A_VERSION
或${JOB_A_VERSION}
unix类系统。 In case of windows batch you would have to use %JOB_A_VERSION%
. 如果是Windows批处理,则必须使用%JOB_A_VERSION%
。
You need to check This build is parameterized in the configuration of JobB
and add the parameter you expect, aswell as how to interpret its content, ie you'd probably chose Text parameter here.您需要检查 JobB
的配置中是否JobB
参数进行了参数化 ,并添加了所需的参数以及如何解释其内容,即您可能在此处选择了Text参数 。
Passing parameters via a properties file works. 通过属性文件传递参数是可行的。
In jobA, 在jobA中
echo "MY_KEY=myvalue" > other_job_properties.txt
Trigger parametrized build on other projects -> Parameters from properties file -> other_job_properties.txt 在其他项目上触发参数化构建->属性文件中的参数-> other_job_properties.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.