Jenkinsfile Printing Shell Output While Saving to Variable with returnStdout

后端 未结 0 1977
挽巷
挽巷 2021-01-20 03:53

I have a Jenkinsfile with a line like this:
def result = sh(script: "echo \'before\' && sleep 20 && echo \'after\'", returnStdout: true).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题