Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Jenkins configuration

Paulius Šukys edited this page Mar 7, 2018 · 3 revisions

This wiki page describes Jenkins configuration for current Continuous Integration solution.

image highlighting project configuration link

Build configuration

Every time Jenkins is triggered - on new commit to an existing Pull Request - the following is being executed:

image showing gradle tasks being run

Static source analysis plugins

Android lint

The configuration is set in app's build.gradle. Android lint configuration file can be found at lint.xml

Jenkins plugin used: Android Lint Plugin

Post-build configuration:

image showing android lint config

Checkstyle

The configuration is set in checkstyle gradle file. More about checkstyle configuration can be found at wiki page: Code style with Checkstyle.

Jenkins plugin used: Checkstyle Plugin

A post-build task is added to parse generated report:

image showing checkstyle config

FindBugs

The configuration is set in findbugs gradle file.

Jenkins plugin used: FindBugs Plugin

Post-build task:

image showing findbugs config

PMD

The configuration is set in PMD gradle file

Jenkins plugin used: PMD Plugin

image showing pmd config

Violations to Github

This plugin publishes violations from various sources to Pull Request at Github in the form of inline comments.

Jenkins plugin: Violation Comments to GitHub Plugin

image showing config

JUnit test results

Configuration in app's gradle file

Jenkins plugin: JUnit Realtime Test Reporter Plugin

image showing junit config

JaCoCo test coverage

Configuration in jacoco gradle file

Jenkins plugin: JaCoCo Plugin

image showing configuration

Values (that are not completely visible in screenshot):

  • Path to class directories: **/build/intermediates/classes/debug, **/build/tmp/kotlin-classes/debug
  • Exclusion: **/R.class, **/R$*.class, **/*$ViewInjector*.*, **/BuildConfig.*, **/Manifest*.*, **/*Test*.*, android/**/*.*
Clone this wiki locally