Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的 Jenkins 参数化构建中为参数定义这些默认值:
p1 = x p2 = ${p1}y // should evaluate to "xy"
问题是,当我构建时,p2设置为${p1}y而不是xy.
p2
${p1}y
xy
您可以添加 Pre-Built 步骤,而不是使用字符串参数,在其中执行 Execute Shell。输入以下内容。
echo p2=${p1}y
所以 p2 可以在项目中访问。当你想使用相同的,使用${p2}