Skip to content
Permalink
Browse files

[JENKINS-31999] set Windows only restriction to some publishers

  • Loading branch information...
cpoenisch committed May 27, 2016
1 parent 189cbd8 commit 045dff380913d9be0e8756ca9841672d03295b43
@@ -64,7 +64,6 @@
import de.tracetronic.jenkins.plugins.ecutest.report.log.ETLogPublisher;
import de.tracetronic.jenkins.plugins.ecutest.report.trf.TRFPublisher;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.ETInstallation;
import de.tracetronic.jenkins.plugins.ecutest.util.ProcessUtil;

/**
* Common base class for {@link ATXPublisher}, {@link ETLogPublisher}, {@link JUnitPublisher} and {@link TRFPublisher}.
@@ -220,7 +219,6 @@ public void perform(final Run<?, ?> run, final FilePath workspace, final Launche
}

try {
ProcessUtil.checkOS(launcher);
performReport(run, workspace, launcher, listener);
} catch (final IOException e) {
Util.displayIOException(e, listener);
@@ -79,6 +79,7 @@
import de.tracetronic.jenkins.plugins.ecutest.tool.client.ETClient;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.ETInstallation;
import de.tracetronic.jenkins.plugins.ecutest.util.ATXUtil;
import de.tracetronic.jenkins.plugins.ecutest.util.ProcessUtil;
import de.tracetronic.jenkins.plugins.ecutest.util.validation.ATXValidator;

/**
@@ -170,6 +171,7 @@ public void performReport(final Run<?, ?> run, final FilePath workspace, final L
final TaskListener listener) throws InterruptedException, IOException, ETPluginException {
final TTConsoleLogger logger = new TTConsoleLogger(listener);
logger.logInfo("Publishing ATX reports...");
ProcessUtil.checkOS(launcher);

final Result buildResult = run.getResult();
if (buildResult != null && !canContinue(buildResult)) {
@@ -237,7 +239,7 @@ public void performReport(final Run<?, ?> run, final FilePath workspace, final L
*/
private boolean publishReports(final ATXInstallation installation, final Run<?, ?> run,
final Launcher launcher, final TaskListener listener)
throws IOException, InterruptedException {
throws IOException, InterruptedException {
final TTConsoleLogger logger = new TTConsoleLogger(listener);
final boolean isUploadEnabled = isUploadEnabled(installation);
final boolean isServerReachable = isServerReachable(installation, launcher, run.getEnvironment(listener));
@@ -62,6 +62,7 @@
import de.tracetronic.jenkins.plugins.ecutest.tool.client.ETClient;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.AbstractToolInstallation;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.ETInstallation;
import de.tracetronic.jenkins.plugins.ecutest.util.ProcessUtil;

/**
* Publisher providing links to saved {@link GeneratorReport}s.
@@ -240,6 +241,7 @@ public void performReport(final Run<?, ?> run, final FilePath workspace, final L
final TaskListener listener) throws InterruptedException, IOException, ETPluginException {
final TTConsoleLogger logger = new TTConsoleLogger(listener);
logger.logInfo("Publishing generator reports...");
ProcessUtil.checkOS(launcher);

final Result buildResult = run.getResult();
if (buildResult != null && !canContinue(buildResult)) {
@@ -68,6 +68,7 @@
import de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportPublisher;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.AbstractToolInstallation;
import de.tracetronic.jenkins.plugins.ecutest.tool.installation.ETInstallation;
import de.tracetronic.jenkins.plugins.ecutest.util.ProcessUtil;
import de.tracetronic.jenkins.plugins.ecutest.util.validation.JUnitValidator;

/**
@@ -230,6 +231,7 @@ public void performReport(final Run<?, ?> run, final FilePath workspace, final L
final TaskListener listener) throws InterruptedException, IOException, ETPluginException {
final TTConsoleLogger logger = new TTConsoleLogger(listener);
logger.logInfo("Publishing UNIT reports...");
ProcessUtil.checkOS(launcher);

final Result buildResult = run.getResult();
if (buildResult != null && !canContinue(buildResult)) {

0 comments on commit 045dff3

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