更新时间:2022-02-04 00:50:36
在构建后操作
下的父作业中,您正在使用在其他项目上触发参数化的构建
插件是正确的方法,但您没有传递任何参数.您需要添加参数,如下图所示
In parent job under Post-build Actions
you are using Trigger parameterized build on other projects
plugin which is the right method but you are not passing any parameter. You need to add parameter as shown in below image
因此 var
中存在的任何值都将传递给子作业,在您的情况下,即 Test_child
,您可以使用相同的变量 var
Test_child
中的code>.
So whatever value is present in var
it will be passed to child job and in your case i.e. Test_child
and you can use the same variable var
in Test_child
.