获取执行结果
result = sh(script: "shell command", returnStdout: true)
获取执行状态码(0或者非0)
excuteCode = sh(script: "shell command", returnStatus: true)
groovy获取shell执行结果和执行状态码
阅读 47
2022-06-28
result = sh(script: "shell command", returnStdout: true)
excuteCode = sh(script: "shell command", returnStatus: true)
相关推荐
精彩评论(0)