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

fix: gojenkins.Task.GetJob return 404 for subtask #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caiyili
Copy link

@caiyili caiyili commented May 25, 2023

If this job is a subtask, such as JENKINS_URL/job/$folder/job/$job-name, the Task.GetJob function will return a 404 error as it did not pass the parentIDs parameter when calling Jenkins.GetJob.

go.mod Outdated
@@ -1,4 +1,4 @@
module github.com/bndr/gojenkins
module github.com/caiyili/gojenkins
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't change the module path, thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching that - you're right, I should not have changed the module path. I've reverted the change and updated the path back to the original. Please take a look and let me know if this works for you now. Appreciate the feedback to improve my work.

@selinafocus
Copy link

i face this issue too, why this still not be merged?

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

Successfully merging this pull request may close these issues.

3 participants