-
Notifications
You must be signed in to change notification settings - Fork 80
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-42971] New API for SCMFileSystem to allow for lightweight checkout with build params #160
Conversation
I would fix the blockers ASAP but first I would like some feedback if this concept does make sence, or if you would prefer a different approach. I dont have problems doing it, but I dont want to do major fixes if I am not sure I am on the right track :) |
I checked it working by updating workflow-cps plugin and done some local changes to git plugin, that can be only added for PR if this PR will be succesful |
FYI once you have a passing build of a PR up to date with its base branch, you will get an “Incrementals” check (here, https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/scm-api/619.vb_7498d1edb_18/) and it is possible to refer to that version in the <dependency>
<groupId>…</groupId>
<artifactId>…</artifactId>
<version>123.vdeadbeef9999</version> <!-- TODO https://github.com/jenkinsci/upstream-plugin/pull/123 -->
</dependency> representing the link and permitting CI to run a full test suite in advance. |
Did you look at #78? |
…e parametrised lightweight checkout
d2e67ee
to
e69eaa1
Compare
I added draft jenkinsci/workflow-cps-plugin#577 and jenkinsci/git-plugin#1305 |
Co-authored-by: Jesse Glick <[email protected]>
Fixed signature Co-authored-by: Jesse Glick <[email protected]>
Hello @jglick , I would just like to ask if the current flow is that multiple reviewers have to approve or if there are any improvements I can do here regarding this scm-api :) |
Not in general, though for significant changes and especially API additions (which cannot generally be reverted if they turn out to be misconceived) I prefer to have a second opinion. |
Yes that sounds reasonable. I will wait :) |
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 new APIs seem fine to me.
… exception if caller uses builder directly Co-authored-by: Devin Nusbaum <[email protected]>
https://issues.jenkins.io/browse/JENKINS-42971
I added a new Builder class into the SCMFileSystem so that we have backward compatibility with current SCM implementations and with ability for a new implementation, so that they can make for example branch substitutions based on parameters in the build (environment).