Skip to content
Permalink
Browse files
NO-JIRA: only archive the surefire reports dirs upon job failure
  • Loading branch information
gemmellr committed Jan 6, 2016
1 parent 0d7ca10 commit a879fa3e463d17aa073ddd584386218903dd842c
Showing 1 changed file with 5 additions and 2 deletions.
@@ -23,6 +23,11 @@ build_script:
test_script:
- mvn clean install -B

on_failure:
- ps: |
7z a -r surefire-reports.zip '**\target\surefire-reports\*'
Push-AppveyorArtifact surefire-reports.zip -DeploymentName 'Surefire Reports'
on_finish:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
@@ -36,8 +41,6 @@ on_finish:
$wc.UploadFile($url, (Resolve-Path $file.FullName))
}
}
7z a -r surefire-reports.zip '**\target\surefire-reports\*'
Push-AppveyorArtifact surefire-reports.zip -DeploymentName 'Surefire Reports'
cache:
- C:\maven\apache-maven-3.3.3

0 comments on commit a879fa3

Please sign in to comment.