Skip to content
Permalink
Browse files
Merge pull request #7 from getrostt/Bugfix/JENKINS-39344
Fix issue JENKINS-39344
  • Loading branch information
slide committed Jan 14, 2018
2 parents 546f020 + f7bf01c commit fcc34c73536a1ce23393192b61c49ae2e6971507
Showing with 38 additions and 3 deletions.
  1. +1 −1 pom.xml
  2. +0 −1 src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisher.java
  3. +37 −1 src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin.java
@@ -75,7 +75,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>publish-over</artifactId>
<version>0.20</version>
<version>0.21</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
@@ -90,5 +90,4 @@ public int hashCode() {
public String toString() {
return addToToString(new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)).toString();
}

}
@@ -32,13 +32,15 @@
import jenkins.plugins.publish_over.BPBuildInfo;
import jenkins.plugins.publish_over.BPPlugin;
import jenkins.plugins.publish_over.BPPluginDescriptor;
import jenkins.plugins.publish_over.ParamPublish;
import jenkins.plugins.publish_over_cifs.descriptor.CifsPublisherPluginDescriptor;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;

import java.util.ArrayList;
import java.util.List;
@@ -48,37 +50,71 @@

private static final long serialVersionUID = 1L;

@DataBoundConstructor
public CifsPublisherPlugin(final ArrayList<CifsPublisher> publishers, final boolean continueOnError, final boolean failOnError,
final boolean alwaysPublishFromMaster, final String masterNodeName, final CifsParamPublish paramPublish) {
super(Messages.console_message_prefix(), publishers, continueOnError, failOnError, alwaysPublishFromMaster, masterNodeName,
paramPublish);
}

@DataBoundConstructor
public CifsPublisherPlugin() {
super(Messages.console_message_prefix());
}

public List<CifsPublisher> getPublishers() {
return this.getDelegate().getPublishers();
}

@DataBoundSetter
public void setPublishers(final ArrayList<CifsPublisher> publishers) {
this.getDelegate().setPublishers(publishers);
}

public boolean isContinueOnError() {
return this.getDelegate().isContinueOnError();
}

@DataBoundSetter
public void setContinueOnError(final boolean continueOnError) {
this.getDelegate().setContinueOnError(continueOnError);
}

public boolean isFailOnError() {
return this.getDelegate().isFailOnError();
}

@DataBoundSetter
public void setFailOnError(final boolean failOnError) {
this.getDelegate().setFailOnError(failOnError);
}

public boolean isAlwaysPublishFromMaster() {
return this.getDelegate().isAlwaysPublishFromMaster();
}

@DataBoundSetter
public void setAlwaysPublishFromMaster(final boolean alwaysPublishFromMaster) {
this.getDelegate().setAlwaysPublishFromMaster(alwaysPublishFromMaster);
}

public String getMasterNodeName() {
return this.getDelegate().getMasterNodeName();
}

@DataBoundSetter
public void setMasterNodeName(final String masterNodeName) {
this.getDelegate().setMasterNodeName(masterNodeName);
}

public CifsParamPublish getParamPublish() {
return (CifsParamPublish) this.getDelegate().getParamPublish();
}

@DataBoundSetter
public void setParamPublish(final ParamPublish paramPublish) {
this.getDelegate().setParamPublish(paramPublish);
}

@Override
protected void fixup(final Run<?, ?> build, final BPBuildInfo buildInfo) {
final Jenkins jenkins = Jenkins.getInstance();

0 comments on commit fcc34c7

Please sign in to comment.