问题
I have been trying to do HTTP request in Jenkins Pipeline Job using HTTPRequest plugin
script{def response = httpRequest authentication: 'CredentialsID', url: "https://host/api/project-summary/kj/?kj=123"}
I have created Credentials with the ID 'CredentialID' in Jenkins.
I am getting the following error when I build the job-
I have already referred to this question on StackOverflow but it didn't help.
Could someone point out the mistake in this or is there some other approach that I can use to make HTTP Request from Jenkins Pipeline Job?
UPDATE: I have also created the Credentials with the ID - 'CredentialsID' in jenkins as shown below:
来源:https://stackoverflow.com/questions/48166066/http-request-using-jenkins-pipeline-job