# OLD Releng macros
+- parameter:
+ name: project-parameter
+ parameters:
+ - string:
+ name: PROJECT
+ default: '{project}'
+ description: "JJB configured PROJECT parameter to identify an ODL Gerrit project"
+
- parameter:
name: gerrit-parameter
parameters:
scm:
- git:
credentials-id: '{credentials-id}'
- url: '{scm-url}'
+ url: '$GIT_BASE'
refspec: ''
branches:
- 'origin/{branch}'
scm:
- git:
credentials-id: '{credentials-id}'
- url: '{scm-url}'
+ url: '$GIT_BASE'
refspec: '{refspec}'
branches:
- 'origin/$GERRIT_BRANCH'
skip-tag: true
choosing-strategy: '{choosing-strategy}'
+- wrapper:
+ name: build-timeout
+ wrappers:
+ - timeout:
+ type: elastic
+ elastic-percentage: 200
+ elastic-default-timeout: 180
+ fail: true
+
- trigger:
name: gerrit-trigger-patch-submitted
triggers:
send-to:
- developers
- recipients
+
+- publisher:
+ name: jacoco-report
+ publishers:
+ - jacoco:
+ exec-pattern: "**/**.exec"
+ class-pattern: "**/classes"
+ source-pattern: "**/src/main/java"
+ status-update: true
+ targets:
+ - branch:
+ healthy: 10
+ unhealthy: 20
+ - method:
+ healthy: 50
+ unhealthy: 40