one may want to provide more than 1 cron timer. (default: 'H H * * 0'
to run weekly)
:git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
+ :jacoco-exclude-pattern: Ant-style patterns to exclude from Jacoco coverage
+ report. (default: ``"**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"``)
:java-version: Version of Java to use for the build. (default: openjdk11)
:mvn-global-settings: The name of the Maven global settings to use for
Maven configuration. (default: global-settings)
class-pattern: "**/classes"
source-pattern: "**/src/main/java"
# yamllint disable-line rule:line-length
- exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
+ exclusion-pattern: "{exclude-pattern}"
status-update: true
targets:
- branch:
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- trigger-parameterized-builds: "{obj:post_build_trigger}"
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
java-version: openjdk11
java-opts: ""
mvn-global-settings: global-settings
notbuilt: true
publishers:
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- findbugs
- lf-infra-publish
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- job-template:
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- job-template:
--- /dev/null
+---
+upgrade:
+ - |
+ ``lf-jacoco-report`` publisher now uses the ``exclude-pattern`` variable to set
+ the exclusion pattern. Any job implementing this publisher needs to define
+ this variable.
+
+ Additionally, all ``lf-maven`` job templates that utilize the ``lf-jacoco-report``
+ publisher define the exclusion pattern with the variable ``jacoco-exclude-pattern``.
+ This can be overwritten by the calling project definition/template in order
+ to set a custom exclusion pattern.