def url = "https://<someURL>"
def command = "CURL -X GET -u "+ url
println "Going to run " + command
def comment_text = sh script: command, returnStatus: true
println comment_text
println comment_text.getClass()
println "hello world, how are you doing today?"
Я получаю вывод команды CURL
, но все операторы печати после этого не выполняются.Работа успешно завершена, хотя.
Строки перед выполнением команды:
Going to run CURL -X GET <url>
[Pipeline] sh
[<some identifier>] Running shell script <shell script here>
И последние несколько строк после выполнения и печати результатов CURL:
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
Finished: SUCCESS