-
Notifications
You must be signed in to change notification settings - Fork 173
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
Upgrade plugin to parent version 1.424 #12
Upgrade plugin to parent version 1.424 #12
Conversation
1 - Extracted the getExclusiveToTimestamp() method to prevent copy-pasting. 2 - Extracted the getRangeSpecification() method to remove duplication and add support for changesets. 3 - Added new constructor overloads. 4 - Made the CC-735 workaround more consistent between both the detailed and brief history implementations, and added support for fromTimestamp being null. 5 - Added tests.
1 - Added getBriefHistory() method overload that wraps command when querying from a given changeset. 2 - Added TODOs for upcoming work.
Jenkins » tfs-plugin #12 SUCCESS |
In those cases, baseline is SCMRevisionState.None and thus we fall back to the old polling method.
Jenkins » tfs-plugin #13 SUCCESS |
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
<artifactId>plugin</artifactId> | ||
<version>1.324</version> | ||
<relativePath>../pom.xml</relativePath> | ||
<version>1.519</version> |
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.
Is such a new version of Jenkins really required? E.g., try to use an old LTS version, e.g. 1.424.
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.
Sure, no problem.
Jenkins » tfs-plugin #14 SUCCESS |
Upgrade plugin to parent version 1.424
Implemented the new SCM methods, including the new method of polling for changes.
Also refactored a bit of code to reduce duplication.
Manual testing:
mvn
and copied the resultingtarget/tfs.hpi
to a Jenkins server running version 1.424, restarting it to make sure my version was picked up. (the Jenkins server is running under Windows)http://jenkins.example.com/pluginManager/installed
and confirming that the version listed was 1.21-SNAPSHOT (private-06/24/2013 20:52-odagenais).42
).http://jenkins.example.com/job/<jobName>/scmPollLog/
until I saw that it ran. The log contains-version:C42~D2013-06-18T19:43:40Z
which confirms the new polling method is being run. Awesome.Project path
to an entirely different path and saved the job again. Refreshed the Polling Log page until the "Started on" time was different. When it was different, this time the log didn't even include a call totf history
, it completed in 6 ms with "Changes found". Double awesome. A build was automatically triggered, whose console output contained the lineDeleting workspace as the configuration has changed since a build was performed on this computer.
. Recorded changeset number displayed in log (let's call it27
).-version:C27~D2013-06-18T19:50:40Z
Mission accomplished!