Q:

jenkinsfile run curl in a function

def response = sh(script: 'curl https://some-host/some-service/getApi?apikey=someKey', returnStdout: true)
0
def response = sh 'curl https://some-host/some-service/getApi?apikey=someKey'
0

New to Communities?

Join the community