Assemble as last step and archive the Jenkinsfile

This commit is contained in:
ligi 2016-08-08 16:07:23 +02:00
parent fbf96abbd3
commit df08092011

9
Jenkinsfile vendored
View file

@ -16,10 +16,6 @@ node {
}
}
stage 'assemble'
sh "./gradlew clean assemble${flavorCombination}Release"
archive 'android/build/outputs/apk/*'
stage 'lint'
try {
sh "./gradlew clean lint${flavorCombination}Release"
@ -34,4 +30,9 @@ node {
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/reports/tests/', reportFiles: "*/index.html", reportName: 'UnitTest'])
step([$class: 'JUnitResultArchiver', testResults: 'android/build/test-results/*/*.xml'])
stage 'assemble'
sh "./gradlew clean assemble${flavorCombination}Release"
archive 'android/build/outputs/apk/*'
archive 'android/build/outputs/mapping/*/release/mapping.txt'
}