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

[JENKINS-38669] (3/3) Call FlowDefinition.getSCMs #147

Merged
merged 10 commits into from
Dec 4, 2023

Conversation

AngryGami
Copy link
Contributor

@AngryGami AngryGami commented Dec 4, 2019

@AngryGami
Copy link
Contributor Author

Hm... I don't understand why it fails. I didn't change any dependencies in this project or in other PRs that I've made. It fails while enforcing version upper bound for workflow-step-api and script-security both of which are transient and I haven't touched. How to fix that?

@dwnusbaum
Copy link
Member

dwnusbaum commented Dec 4, 2019

@AngryGami Your dependency updates include other releases besides just your changes, and one of those releases must have updated the version of workflow-step-api or script-security that the dependency requires. To fix it, just update those dependencies in this PR to the most recent version mentioned in the upper bound errors. If they are not already mentioned explicitly in <dependencies>, then add a <dependencyManagement> section that specifies the version instead.

Copy link
Contributor

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me.

Copy link
Member

@dwnusbaum dwnusbaum left a comment

Choose a reason for hiding this comment

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

The change looks good, but I'd really like to see a regression test for the user-facing behavior, not just the new method.

If you take a look at WorkflowJobTest.polling() you will see a test that is very similar to the scenario you care about. In that test, the job is built once so that polling can trigger a second build. I think you could create a new test, call it something like firstBuildPolling, and show that you can use the polling endpoint to trigger the first build of the job with these changes. What do you think?

@AngryGami
Copy link
Contributor Author

I'll try

Copy link
Member

@dwnusbaum dwnusbaum left a comment

Choose a reason for hiding this comment

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

Thanks!

@williancolognesitrimble

any update on it? same problem here.

@jglick jglick requested a review from a team as a code owner December 4, 2023 15:37
@jglick jglick marked this pull request as draft December 4, 2023 15:40
@jglick jglick changed the title Third stage fix of JENKINS-38669 [JENKINS-38669] (3/3) Call FlowDefinition.getSCMs Dec 4, 2023
@jglick jglick added the bug label Dec 4, 2023
@jglick
Copy link
Member

jglick commented Dec 4, 2023

Sorry this slipped through the cracks for so long! Working on getting this released.

@jglick jglick marked this pull request as ready for review December 4, 2023 20:31
@jglick jglick enabled auto-merge December 4, 2023 20:31
@jglick jglick merged commit b58b86e into jenkinsci:master Dec 4, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants