Skip to content
Permalink
Browse files

[JENKINS-19539] Do not (try to) generate coverage information if buil…

…d was aborted
  • Loading branch information...
mabako committed Sep 11, 2013
1 parent 43443ec commit acdd801b9b5c107f0e09275bf62d2b15b150fc80
@@ -239,7 +239,7 @@ public JacocoBuildAction getPreviousResult() {
b = b.getPreviousBuild();
if(b==null)
return null;
if(b.getResult()== Result.FAILURE)
if(b.getResult()== Result.FAILURE || b.getResult() == Result.ABORTED)
continue;
JacocoBuildAction r = b.getAction(JacocoBuildAction.class);
if(r!=null)
@@ -41,7 +41,7 @@ public String getUrlName() {
*/
public JacocoBuildAction getLastResult() {
for (AbstractBuild<?, ?> b = project.getLastBuild(); b != null; b = b.getPreviousBuild()) {
if (b.getResult() == Result.FAILURE)
if (b.getResult() == Result.FAILURE || b.getResult() == Result.ABORTED)
continue;
JacocoBuildAction r = b.getAction(JacocoBuildAction.class);
if (r != null)
@@ -304,7 +304,7 @@ public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListene
FilePath[] matchedClassDirs = null;
FilePath[] matchedSrcDirs = null;

if (build.getResult().equals(Result.FAILURE)) {
if (build.getResult() == Result.FAILURE || build.getResult() == Result.ABORTED) {
return true;
}

0 comments on commit acdd801

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