Skip to content

Commit

Permalink
Merge remote-tracking branch 'BenjaminAmos/jenkins-android-builds' in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
Cervator committed Oct 31, 2021
2 parents ed421e2 + 313722f commit e726c36
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node ("default-java || heavy-java") {
node ("android") {
stage('Checkout') {
echo "Going to check out the things !"
checkout scm
Expand All @@ -21,6 +21,18 @@ node ("default-java || heavy-java") {
recordIssues tool: pmdParser(pattern: '**/build/reports/pmd/*.xml')
recordIssues tool: taskScanner(includePattern: '**/*.java,**/*.groovy,**/*.gradle', lowTags: 'WIBNIF', normalTags: 'TODO', highTags: 'ASAP')
}
stage('Build Android') {
sh 'echo sdk.dir=/opt/android-sdk > local.properties'
dir('android') {
checkout scm: [$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/MovingBlocks/DestSolAndroid.git']]]
}
sh './gradlew --console=plain :android:assembleDebug'
archiveArtifacts 'android/build/outputs/apk/debug/android-debug.apk'
}
stage('Record Android') {
sh './gradlew --console=plain :android:lint'
recordIssues tool: androidLintParser(pattern: 'android/build/reports/lint-results.xml')
}
stage('Notify') {
withCredentials([string(credentialsId: 'destsolDiscordWebhook', variable: 'WEBHOOK')]) {
discordSend title: env.BRANCH_NAME, link: env.BUILD_URL, result: currentBuild.currentResult, webhookURL: env.WEBHOOK
Expand Down

0 comments on commit e726c36

Please sign in to comment.