Chu*_*ang 12 hudson parameter-passing jenkins
我有一个Hudson作业,在远程服务器上执行shell脚本.
它的shell命令是:
/usr/bin/deployWar.sh ${warfileName}
Run Code Online (Sandbox Code Playgroud)
我将此构建标记为参数化,并添加了一个字符串参数:
name: warFileName
default value: none
description: name of war file
Run Code Online (Sandbox Code Playgroud)
当我运行它时,参数被分配,但它被传递到shell脚本.
Per*_*vus 16
参数化的Build Jenkins插件文档说明了这一点
参数添加的所有环境变量都是大写的
在你的情况下,这应该工作:
/usr/bin/deployWar.sh ${WARFILENAME}
Run Code Online (Sandbox Code Playgroud)