内容目录
记录一下问题,其实就是Jenkins执行的时候没有权限
[ERROR] Command execution failed. java.io.IOException: Cannot run program "/var/xxxx.sh" (in directory "/var/lib/jenkins/workspace/xxxxx"): error=13, Permission denied
这里给他在执行的脚本中先获取权限就好了
chmod -R +x /var/lib/jenkins/workspace/你要赋值的目录