After piecing together many suggestions with some trial and error, I was
finally able to get the Jenkins job to run remotely with the VBScript (ASP)
code below (with variables set to proper values such as strCrumb). The
returned Status will be 201 for success. The Base64 functions were taken
You would have to implement a function to base64 encode the data (I should
have mentioned that in my previous post).
On Tue, Jul 9, 2019 at 2:41 PM D. C. wrote:
> Thanks for the suggestions. I had actually already tried "HttpReq.Open
> "POST", strJenkinsURL, False, strUsername, strPassword" and
Thanks for the suggestions. I had actually already tried "HttpReq.Open
"POST", strJenkinsURL, False, strUsername, strPassword" and it didn't
help. Since the error returned has to do with the crumb (403 No valid
crumb was included), I hoped the auth part was actually working, but maybe
not. I
I think you want to pass the username/password as part of the Open method
call
HttpReq.Open "POST", strJenkinsURL, False, strUsername, strPassword
In addition, you may need to set an Authorization header, but I am not sure
how the MSXML2.ServerXMLHTTP object handles that if you pass the
username
I have searched all over but haven't found a solution to this. The
JenkinsAPI page doesn't provide information on using VBScript either.
I am trying to start a job in Jenkins from a classic ASP web page (so
VBScript - code below). I used wget from examples on the Jenkins API page
to get the Jen