From df0809201106acb3515849984d68ffda451aa2d3 Mon Sep 17 00:00:00 2001 From: ligi Date: Mon, 8 Aug 2016 16:07:23 +0200 Subject: [PATCH] Assemble as last step and archive the Jenkinsfile --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f8af526f..a04c2581 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } \ No newline at end of file