package org.jenkinsci.plugins.p4.review; public enum ReviewProp { // Basic Swarm Review properties SWARM_STATUS("status", true), // "committed" or "shelved" see tasks.CheckoutStatus SWARM_REVIEW("review", true), SWARM_PASS("pass", true), SWARM_FAIL("fail", true), // Extended Swarm Review properties SWARM_PROJECT("swarm_project", true), SWARM_BRANCH("swarm_branch", true), SWARM_PATH("swarm_path", true), // Core Perforce properties P4_CHANGE("change", true), P4_LABEL("label", false), // reserved by Jenkins for Slave Axes P4_PORT("p4port", true), // must match P4PORT string in credential // SCM MultiBranch properties EVENT_TYPE("event_type", true); public static final String NAMESPACE = "p4."; final private String prop; final private boolean load; ReviewProp(String prop, boolean load) { this.prop = prop; this.load = load; } public String toString() { return NAMESPACE + prop; } public String getProp() { return prop; } public boolean isLoad() { return load; } public static boolean isProp(String prop) { for (ReviewProp p : ReviewProp.values()) { if (p.isLoad() && p.getProp().equals(prop)) return true; } return false; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 24529 | Paul Allen |
Swarm Commit Event support, refactoring and test. JENKINS-52605 (Fix doc in 'Includes' help bubble for MultiBranch) JENKINS-52066 (Improve Swarm Commit and Branch Event support) |
||
#4 | 24492 | Paul Allen |
Initial work for MultiBranch Event trigger. JENKINS-52066 (Triggered Events and not Polling per change) |
||
#3 | 19581 | Paul Allen | Minor fixes to satisfy FindBugs Analysis. | ||
#2 | 11492 | Paul Allen | Minor Fix: first parent builds and label namespace | ||
#1 | 10755 | Paul Allen |
Separate name space for 'label' parameter. Perforce Review endpoint added `label`, `change`, `status`, `pass`, and `fail` parameter into the environment, which is a shared name space. This clashed with the default `label` matrix name and causing users issues. The change prefixes the review parameters with `p4.` on addition to the environment. |