Jenkins 调用 Shell 脚本

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. 构建检查 结果

 

 

 

posted @ 2022-01-05 23:09  闫世成  阅读(136)  评论(0编辑  收藏  举报