-
Notifications
You must be signed in to change notification settings - Fork 122
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
Conversation
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? |
@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 |
There was a problem hiding this 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.
There was a problem hiding this 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?
I'll try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
any update on it? same problem here. |
FlowDefinition.getSCMs
Sorry this slipped through the cracks for so long! Working on getting this released. |
Please see https://issues.jenkins-ci.org/browse/JENKINS-38669 for explanation
Upstream PRs:
FlowDefinition.getSCMs
workflow-api-plugin#111CpsScmFlowDefinition.getSCMs
workflow-cps-plugin#341