Jenkinsfile Run Curl w funkcji
def response = sh(script: 'curl https://some-host/some-service/getApi?apikey=someKey', returnStdout: true)
Grotesque Grivet
def response = sh(script: 'curl https://some-host/some-service/getApi?apikey=someKey', returnStdout: true)
def response = sh 'curl https://some-host/some-service/getApi?apikey=someKey'