Publish lint report on critical error
This commit is contained in:
parent
b9930e6dad
commit
e1ac85c0ed
1 changed files with 8 additions and 3 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -9,8 +9,13 @@ 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"
|
||||
|
|
Loading…
Reference in a new issue