jenkinsfile run curl in a function
def response = sh(script: 'curl https://some-host/some-service/getApi?apikey=someKey', returnStdout: true)
5
1
def response = sh 'curl https://some-host/some-service/getApi?apikey=someKey'
Thank you!
1
0
Are there any code examples left?
New code examples in category Shell/Bash