Basic Auth with Jenkins http-request-plugin
I am trying to make a simple POST-request with the "Http Request Plugin". My problem is with getting the credentials to work. I have set a global credential, user:pass . But trying this in my code withCredentials([usernameColonPassword(credentialsId: 'akamai', variable: 'akamai')]) { def response = httpRequest url: requestUrl, contentType: requestContentType, httpMode: requestHttpMode, requestBody: requestContent, authentication: akamai echo "Status: ${response.status}\nContent: ${response.content}" } results in java.lang.IllegalStateException: Authentication 'user:pass' doesn't exist anymore