1. 准备好脚本实现传参
[root@jenkins-client opt]# chmod +x test.sh [root@jenkins-client opt]# cat ^C [root@jenkins-client opt]# cat test.sh #!/bin/bash echo "hehe" echo "$1"
2. jenkins 项目配置 传参内容
[root@jenkins-client opt]# chmod +x test.sh [root@jenkins-client opt]# cat ^C [root@jenkins-client opt]# cat test.sh #!/bin/bash echo "hehe" echo "$1"
作者:闫世成
出处:http://cnblogs.com/yanshicheng