获取执行结果
result = sh(script: "shell command", returnStdout: true)
获取执行状态码(0或者非0)
excuteCode = sh(script: "shell command", returnStatus: true)
微信扫一扫
result = sh(script: "shell command", returnStdout: true)
excuteCode = sh(script: "shell command", returnStatus: true)
相关推荐