Skip to content
Permalink
Browse files

[FIXED JENKINS-18899]

  • Loading branch information...
svvivek committed Sep 24, 2013
1 parent 9156293 commit c9f4087afb91aaf7c6d3dfd637cf33ceb95bfeb5
@@ -53,20 +53,20 @@
private final String excludes;
private final boolean overrideDestinationFolder;
private final String destinationFolder;
private final boolean runInBackground;
private final boolean runAfterResultFinalised;

@DataBoundConstructor
public CopyToMasterNotifier(String includes, String excludes, boolean overrideDestinationFolder, String destinationFolder, boolean runInBackground) {
public CopyToMasterNotifier(String includes, String excludes, boolean overrideDestinationFolder, String destinationFolder, boolean runAfterResultFinalised) {
this.includes = includes;
this.excludes = excludes;
this.overrideDestinationFolder = overrideDestinationFolder;
this.destinationFolder = destinationFolder;
this.runInBackground = runInBackground;
this.runAfterResultFinalised = runAfterResultFinalised;
}

@Override
public boolean needsToRunAfterFinalized() {
return getRunInBackground();
return getRunAfterResultFinalised();
}

@Override
@@ -118,8 +118,8 @@ public boolean isOverrideDestinationFolder() {
return overrideDestinationFolder;
}

public boolean getRunInBackground() {
return runInBackground;
public boolean getRunAfterResultFinalised() {
return runAfterResultFinalised;
}

public BuildStepMonitor getRequiredMonitorService() {
@@ -26,8 +26,8 @@
<f:entry title="${%Includes}" field="includes">
<f:textbox/>
</f:entry>
<f:entry title="${%RunInBackground}" field="runInBackground">
<f:checkbox/>
<f:entry title="${%RunAfterResultFinalised}" field="runAfterResultFinalised">
<f:checkbox default="true"/>
</f:entry>
<f:advanced>
<f:entry title="${%Excludes}" field="excludes">
@@ -24,4 +24,4 @@ DestinationFolder=Destination folder
Includes=Files to copy
Excludes=Files to exclude from the copy
OverrideDestinationFolder=Override destination folder
RunInBackground=Run In Background ?
RunAfterResultFinalised=Run After Result Is Finalised?

0 comments on commit c9f4087

Please sign in to comment.
You can’t perform that action at this time.