I am building an Android project with Jenkins (2.0 Beta) as a Pipeline.
From a Freestyle job I can archive the build results using a post build action Publish Android Lint Results.
My Pipeline script is:
git branch: 'final', url: 'https://github.com/LordRaydenMK/android-testing/'
sh './gradlew clean assemble'
stage 'Android Lint'
sh './gradlew lint'
stage 'Lint Results'
//How to archive the results ?
sh './gradlew test'
stage 'JUnit tests'
step([$class: 'JUnitResultArchiver', testResults: 'app/build/test-results/*/TEST-*.xml'])
After looking trough the source code I realized the published version (2.2) is not compatible with Pipeline.
Version 2.3 with pipeline compatibility is not released yet.
Update: Version 2.3 of the Android Lint Plugin was released. To archive the results you can use
step([$class: 'LintPublisher', pattern: 'app/build/outputs/lint-results*.xml'])