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 项目配置 传参内容
3. Jenkins 项目 调用脚本和传参
4. 构建检查 结果
[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"
相关文章: