package org.jenkinsci.plugins.p4.review; import hudson.Extension; import hudson.model.Action; import hudson.model.TransientProjectActionFactory; import hudson.model.AbstractProject; import java.util.Collection; import java.util.Collections; @Extension public class ReviewProperty extends TransientProjectActionFactory { @Override @SuppressWarnings({ "rawtypes", "unchecked" }) public Collection<? extends Action> createFor(final AbstractProject project) { String scm = project.getScm().getType(); if (scm != null && scm.contains("PerforceScm")) { return Collections.singleton(new ReviewAction(project)); } return Collections.EMPTY_LIST; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11628 | Paul Allen | Branching using p4-jenkins-R1.1 | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/review/ReviewProperty.java | |||||
#1 | 9690 | Paul Allen |
[Branching using p4-jenkins] Release 1.0.1 |
||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4/review/ReviewProperty.java | |||||
#1 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4_client/review/ReviewProperty.java | |||||
#3 | 8729 | Paul Allen |
Changed Build Review to Transient Action (so no check box required). - Added Perforce Icon to Build Review Action. |
||
#2 | 8688 | Paul Allen | (Work in progress) Able to call build from review Action and pass URL params. | ||
#1 | 8683 | Paul Allen | Simple Action plugin hooks for building reviews in a Jenkins Job. |