X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Freleng-macros.yaml;h=eeff7a818e41ae9490e3f1dedfe4084dbd78d255;hb=10b640dfac95aa0c0e4e4fe3ccdb782f8f796ec3;hp=4bab7f435c5649200060c3878f38e0cd303b4852;hpb=88b312fa0728de864834d5bf1aa700efa19c66d9;p=releng%2Fbuilder.git diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml index 4bab7f435..eeff7a818 100644 --- a/jjb/releng-macros.yaml +++ b/jjb/releng-macros.yaml @@ -1,5 +1,13 @@ # 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: @@ -13,7 +21,7 @@ scm: - git: credentials-id: '{credentials-id}' - url: '{scm-url}' + url: '$GIT_BASE' refspec: '' branches: - 'origin/{branch}' @@ -25,13 +33,22 @@ 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: @@ -83,3 +100,19 @@ 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