简体   繁体   English

Jenkins参数化触发器插件将值传递为“ VALUE”

[英]Jenkins Parameterized Trigger Plugin passing value as “VALUE”

I am using "Parameterized Trigger Plugin" to trigger child job. 我正在使用“参数化触发器插件”来触发子作业。 I am passing predefined parameter as NUMBER=$VERSION_NUMBER and child job failed saying FILE_NAME."12345" do not exist. 我将预定义参数传递为NUMBER = $ VERSION_NUMBER,并且子作业失败,提示FILE_NAME。“ 12345”不存在。 I went to location and found property file is there and realized that child job is searching properties file as FILE_NAME."12345"(FILE_NAME.$NUMBER) and actual name of file is FILE_NAME.12345, So root cause seems like that pligin is passing value with "". 我到该位置,发现属性文件在那里,并且意识到子作业正在搜索属性文件为FILE_NAME。“ 12345”(FILE_NAME。$ NUMBER),文件的实际名称是FILE_NAME.12345,所以根本原因似乎是pligin正在传递“”的值。

Please suggest if there is a way to pass value without "". 请建议是否有一种不带“”的值传递方法。

Thanks !! 谢谢 !!

尝试使用$ {NUMBER}而不是$ NUMBER

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM