Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoked BuildJob but raised "Don't have key Location in response of header" #248

Open
ShenSteve opened this issue Aug 5, 2021 · 2 comments

Comments

@ShenSteve
Copy link

using release v1.0.1,
API response status code is 200 or 201, but no location in response header, the build hasn't been triggered on Jenkins.
errors.New("Don't have key "Location" in response of header")

What kind of cause leads to this error? I mean, the response code is 200/201, but the build hasn't been triggered in fact.

@ShenSteve ShenSteve changed the title Invoke BuildJob but raised "Don't have key Location in response of header" Invoked BuildJob but raised "Don't have key Location in response of header" Aug 5, 2021
@lcsoft2009
Copy link

Hi @ShenSteve
I got the same issue and solved by corrected my job name with the folder path(multibranch job).
wrong job name: testJob
correct job name: testJob/job/develop/

@shreshth0707
Copy link

shreshth0707 commented Dec 1, 2021

For a multibranch job , the name of the job should include the branch name as well
Ex: Jobname : testJob
Branch Name : master

jenkins.BuildJob(ctx,"testJob/job/master", nil)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants