Created
March 18, 2021 08:24
-
-
Save dino-su/b2a77b4a0f19da8f1ff7a4a281f4f48b to your computer and use it in GitHub Desktop.
Android Lint with Quality Gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Git') { | |
steps { | |
git 'https://github.com/android/sunflower.git' | |
} | |
} | |
stage('Lint') { | |
steps { | |
sh "./gradlew lint" | |
} | |
post { | |
success { | |
recordIssues(tools: [androidLintParser(pattern: '**/lint-results-*.xml')], qualityGates: [[threshold: 100, type: 'TOTAL', unstable: false]]) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment