package org.jenkinsci.plugins.p4.scm; import jenkins.scm.api.SCMHead; import jenkins.scm.api.mixin.ChangeRequestSCMHead; import org.jenkinsci.plugins.p4.scm.swarm.P4Path; import java.util.List; public class P4ChangeRequestSCMHead extends P4Head implements ChangeRequestSCMHead { private static final long serialVersionUID = 1L; private final SCMHead target; private final String review; P4ChangeRequestSCMHead(String name, String review, List<P4Path> paths, SCMHead target) { super(name, paths); this.target = target; this.review = review; } @Override public String getId() { return getName(); } public String getReview() { return review; } /** * Branch to which this change would be merged or applied if it were accepted. * * @return a “target” or “base” branch */ @Override public SCMHead getTarget() { return target; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#12 | 30142 | Sandeep Kumar |
Merge pull request #[202] from [master/RevertChanges] Revert Gradle Changes |
||
#11 | 30083 | Sandeep Kumar |
Merge pull request #[199] from [jenkinsci/BuildUsingGradle] Chnage build tool from maven to gradle |
||
#10 | 26955 | Paul Allen |
Merge pull request #125 from dvilaverde/master Add ContributorMetadataAction to SwarmScmSource to enable CHANGE_AUTHOR env variable in build |
||
#9 | 26938 | Paul Allen |
Merge pull request #122 from dvilaverde/master Have P4ChangeRequestSCMHead implement interface ChangeRequestSCMHead2 |
||
#8 | 24662 | Paul Allen |
Undo *SCMSource rename to original *ScmSource. Reslove configuration loading issue due to 1.9.0 bad release. |
||
#7 | 24504 | Paul Allen |
Tree walter for BranchSCMSource Events. On a change-submit event use the change number and grab a submitted file. Walk up the path looking for a Jenkinsfile, then derive 'Project' path, 'Branch' name and 'Path' for the SCMHead/Revision. This assumes that the Jenkinsfile is in the route of your projects. Alternatively use the Swarm Event and pass your own 'Project', 'Branch' and 'Path'. |
||
#6 | 24501 | Paul Allen | Refactor to use P4SCMXxx naming convention. | ||
#5 | 24454 | Paul Allen |
Exclude and Include mapping support. Refactored P4Path usage and added P4SwarmPath. JENKINS-49804 |
||
#4 | 22875 | Paul Allen | Refactor P4Path and Swarm API | ||
#3 | 22678 | Paul Allen |
MultiBranch support for Helix4Git (GitHub PR model). Update MultiBranch product names to Helix. |
||
#2 | 22532 | Paul Allen |
Return empty list on error for listRepos() JENKINS-45420 |
||
#1 | 22396 | Paul Allen |
MultiBranch support for Perforce Swarm Reviews. A work in progress - adds Swarm API support to find branches and reviews from a Swarm project. #review-22354 |