Publish lint report on critical error
This commit is contained in:
parent
b9930e6dad
commit
e1ac85c0ed
1 changed files with 8 additions and 3 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -9,9 +9,14 @@ node {
|
|||
archive 'android/build/outputs/apk/*'
|
||||
|
||||
stage 'lint'
|
||||
sh "./gradlew lint${flavorCombination}Release"
|
||||
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/outputs/', reportFiles: "lint-results-*Release.html", reportName: 'Lint'])
|
||||
|
||||
try {
|
||||
sh "./gradlew lint${flavorCombination}Release"
|
||||
} catch(err) {
|
||||
currentBuild.result = FAILURE
|
||||
} finally {
|
||||
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/outputs/', reportFiles: "lint-results-*Release.html", reportName: 'Lint'])
|
||||
}
|
||||
|
||||
stage 'test'
|
||||
sh "./gradlew test${flavorCombination}DebugUnitTest"
|
||||
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/reports/tests/', reportFiles: "*/index.html", reportName: 'UnitTest'])
|
||||
|
|
Loading…
Reference in a new issue