
org.zeroturnaround.jenkins.Upload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liverebel-deploy Show documentation
Show all versions of liverebel-deploy Show documentation
LiveRebel Plugin helps to run updates to your JEE containers faster. LiveRebel is a tool for hot updates without downtime,
lost sessions and OutOfMemoryErrors. You have to have a running LiveRebel Command Center to use this plugin.
The newest version!
package org.zeroturnaround.jenkins;
import hudson.Extension;
import hudson.model.Hudson;
import org.kohsuke.stapler.DataBoundConstructor;
import org.zeroturnaround.jenkins.util.ArtifactAndMetadataDescriptor;
import static org.apache.commons.lang.StringUtils.trimToNull;
public class Upload extends LiveRebelDeployBuilder.ActionWrapper {
public final String artifact;
public final String app;
public final String ver;
public final String trace;
public final boolean isOverride;
@DataBoundConstructor
public Upload(String artifact, String trace, OverrideForm overrideForm) {
this.artifact = trimToNull(artifact);
this.trace = trimToNull(trace);
if (overrideForm != null) {
this.app = trimToNull(overrideForm.getApp());
this.ver = trimToNull(overrideForm.getVer());
this.isOverride = true;
} else {
this.app = null;
this.ver = null;
this.isOverride = false;
}
}
public DescriptorImpl getDescriptor() {
return (DescriptorImpl) Hudson.getInstance().getDescriptor(getClass());
}
@Extension
public static class DescriptorImpl extends ArtifactAndMetadataDescriptor {
@Override
public String getDisplayName() {
return "Upload";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy