package org.jenkinsci.plugins.p4.publish; import java.io.Serializable; import hudson.DescriptorExtensionList; import hudson.ExtensionPoint; import hudson.model.Describable; import jenkins.model.Jenkins; public abstract class Publish implements ExtensionPoint, Describable<Publish>, Serializable { private static final long serialVersionUID = 1L; private final String description; private final boolean onlyOnSuccess; private String expandedDesc; public String getDescription() { return description; } public boolean isOnlyOnSuccess() { return onlyOnSuccess; } public Publish(String description, boolean onlyOnSuccess) { this.description = description; this.onlyOnSuccess = onlyOnSuccess; } public PublishDescriptor getDescriptor() { Jenkins j = Jenkins.getInstance(); if (j != null) { return (PublishDescriptor) j.getDescriptor(getClass()); } return null; } public static DescriptorExtensionList<Publish, PublishDescriptor> all() { Jenkins j = Jenkins.getInstance(); if (j != null) { return j.<Publish, PublishDescriptor> getDescriptorList(Publish.class); } return null; } public String getExpandedDesc() { return expandedDesc; } public void setExpandedDesc(String expandedDesc) { this.expandedDesc = expandedDesc; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19599 | mparfianowicz | "Forking branch Main of p4-jenkins to mparfianowicz-p4jenkins." | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/publish/Publish.java | |||||
#4 | 19581 | Paul Allen | Minor fixes to satisfy FindBugs Analysis. | ||
#3 | 14035 | Paul Allen |
Publish on Success option. Added a checkbox to the Publish step to only shelve/submit change if the build succeeded. |
||
#2 | 11334 | Paul Allen |
Remote slave support for Publish Perforce Publish commands need to be executed from the remote slave. - Includes refactoring into task package |
||
#1 | 11231 | Paul Allen |
Publish assets to Perforce. New feature to allow Jenkins to shelve or submit the build result to Perforce. Configured as a Post Build Step, the Perforce credential and workspace are required as the asset could be published to a different Perforce instance. |