-
Notifications
You must be signed in to change notification settings - Fork 3
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
git support #1
Comments
This would be a fantastic addition. My only requirement is that the git library used be a pure Java version. That doesn't seem like too big a hurdle: I understand you want to try implementing yourself. Please discuss here if you have any questions. Many thanks! |
Hey @amorphous1 I took a look, and found a couple of small issues. You can let me know if you are keen to work on fixing them, if you are too busy or not interested, no worries, I can do it. First problem is a null pointer exception is thrown from Second issue is down to my pickiness. I don't like the way the properties for choosing between svn and git is leaving the We prefix the property names related to version control with the vcs being used. For SVN, change The It is a runtime to have a mix of vcs-prefixed properties being populated. So if you have Alternatively we could just have a new property, like What do you think? As I said, if you're happy with the contribution so far (and I am definitely happy with it) then feel free to let me know, and I'll fix these two issues. Thanks! |
I agree that the properties should be improved (just wanted to have a rather minimal changeset that works for my usecase and that you can look at). On first glance, I like the alternative approach with "versionControlSystemUsed" a bit more, because I think that it would be easier when you wanted to support even more VCS (in theory, mercurial should work very similar to git) - might be wrong though. Feel free to implement any way you seem fit, I do not intend to tackle that issue. I could reproduce the NPE and pushed a quick fix to my fork (I had not tested this case because in CI you always have a clean working copy). There are probably more NPEs lurking... (Sorry for answering late, I blame the weather in London...) |
Cool, will pick up both of those points. Many thanks! |
It would be nice if the plugin supported git besides svn.
(We are in the process of migrating from svn to git - the developer's working copies are still svn, but the Jenkins build already uses a read-only git mirror.)
The text was updated successfully, but these errors were encountered: