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

Add a GetJobObj() in jenkins.go, also add job as param in GetBuildFro… #239

Merged
merged 1 commit into from
May 20, 2021

Conversation

figo
Copy link
Collaborator

@figo figo commented May 20, 2021

…mQueueID()

This will avoid the problem of trying to create job object in GetBuildFromQueueID() from task.Name.
task.Name can be different from job name when Job name has a folder structure.

Signed-off-by: Hui Luo [email protected]

…mQueueID()

This will avoid the problem of trying to create job object in GetBuildFromQueueID() from task.Name.
task.Name can be different from job name when Job name has a folder structure.

Signed-off-by: Hui Luo <[email protected]>
if err != nil {
panic(err)
}
build, err := jenkins.GetBuildFromQueueID(ctx, queueid)
build, err := jenkins.GetBuildFromQueueID(ctx, job, queueid)
Copy link

Choose a reason for hiding this comment

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

This didn't work for me, I had to call job.Poll(ctx) first.

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.

None yet

2 participants