Exec exit status not zero. Status [126] 解决方法

﹏ヽ暗。殇╰゛Y 2022-05-14 09:04 3075阅读 0赞
  1. SSH: Connecting from host [web.beijing]
  2. SSH: Connecting with configuration [192.168.1.21测试环境] ...
  3. SSH: EXEC: STDOUT/STDERR from command [/xxxx] ...
  4. bash: /xx/xx/xx.sh: Ȩ�޲���
  5. SSH: EXEC: completed after 201 ms
  6. SSH: Disconnecting configuration [xxxx] ...
  7. ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [126]]

jenkins自动化构建时,执行远程SSH时,返回错误状态码 126.

原因: 对应的.sh 脚本权限不足,修改需执行的脚本权限即可、

发表评论

表情:
评论列表 (有 0 条评论,3075人围观)

还没有评论,来说两句吧...

相关阅读