0
点赞
收藏
分享

微信扫一扫

groovy获取shell执行结果和执行状态码

有点d伤 2022-06-28 阅读 38


获取执行结果

result = sh(script: "shell command", returnStdout: true)

获取执行状态码(0或者非0)

excuteCode = sh(script: "shell command", returnStatus: true)

举报

相关推荐

0 条评论