From 7f1a2653936fdc140df59406f85899409c2bc1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CC=83nis=20Pool?= Date: Sun, 30 Aug 2015 18:24:00 +0300 Subject: [PATCH] Added rebel.xml to .gitignore and fixed adding FlowTestResults action twice --- .gitignore | 1 + .../jenkins/flowbuildtestaggregator/FlowTestAggregator.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bab2482..575f077 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /*.iml work/ +**/rebel.xml ## Directory-based project format: .idea/ # if you remove the above rule, at least ignore the following: diff --git a/src/main/java/org/zeroturnaround/jenkins/flowbuildtestaggregator/FlowTestAggregator.java b/src/main/java/org/zeroturnaround/jenkins/flowbuildtestaggregator/FlowTestAggregator.java index 7fda51c..3871111 100644 --- a/src/main/java/org/zeroturnaround/jenkins/flowbuildtestaggregator/FlowTestAggregator.java +++ b/src/main/java/org/zeroturnaround/jenkins/flowbuildtestaggregator/FlowTestAggregator.java @@ -41,9 +41,8 @@ public BuildStepMonitor getRequiredMonitorService() { @Override public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { - FlowTestResults testResults = new FlowTestResults(); - build.addAction(testResults); FlowRun flowRun = (FlowRun) build; + FlowTestResults testResults = new FlowTestResults(); flowRun.addAction(testResults); listener.getLogger().println("Starting to gather test results!"); try {