+- job-template:
+ name: 'vpp-coverity-{stream}'
+
+ project-type: freestyle
+ node: 'ubuntu1804-us'
+ concurrent: true
+ archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
+
+ build-discarder:
+ daysToKeep: '{build-days-to-keep}'
+ numToKeep: '{build-num-to-keep}'
+ artifactDaysToKeep: '{build-artifact-days-to-keep}'
+ artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - os-parameter:
+ os: 'ubuntu1804'
+ - repo-name-parameter:
+ repo-name: '{repo-stream-part}.ubuntu.bionic.main'
+ - stream-parameter:
+ stream: '{stream}'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: 'jenkins-gerrit-credentials'
+ refspec: ''
+ choosing-strategy: 'gerrit'
+
+ wrappers:
+ - fdio-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - timed: '0 14 * * *'
+
+ builders:
+ - shell:
+ command: !include-raw-escape: include-raw-vpp-coverity.sh
+ unstable-return: 42
+
+ publishers:
+ - email-ext:
+ # yamllint disable-line rule:line-length
+ recipients: 'ejk@cisco.com'
+ reply-to: ''
+ content-type: 'text'
+ subject: 'Coverity run passing as of $BUILD_TIMESTAMP'
+ # yamllint disable-line rule:line-length
+ body: |
+ Coverity run passing.
+
+ ${{FILE,path="output.txt"}}
+ failure: false
+ success: true
+ - email-ext:
+ # yamllint disable-line rule:line-length
+ recipients: 'ejk@cisco.com'
+ reply-to: ''
+ content-type: 'text'
+ subject: 'Coverity run UNSTABLE as of $BUILD_TIMESTAMP'
+ # yamllint disable-line rule:line-length
+ body: |
+ Coverity run UNSTABLE.
+
+ Something went wrong with daily scan.
+ failure: false
+ unstable: true
+ - email-ext:
+ # yamllint disable-line rule:line-length
+ recipients: 'vpp-dev@lists.fd.io, ejk@cisco.com'
+ reply-to: ''
+ content-type: 'text'
+ subject: 'Coverity run FAILED as of $BUILD_TIMESTAMP'
+ # yamllint disable-line rule:line-length
+ body: |
+ Coverity run failed today.
+
+ ${{FILE,path="output.txt"}}
+ failure: true
+ - email-ext:
+ # yamllint disable-line rule:line-length
+ recipients: 'vpp-dev@lists.fd.io, ejk@cisco.com'
+ reply-to: ''
+ content-type: 'text'
+ subject: 'Coverity run as of $BUILD_TIMESTAMP'
+ # yamllint disable-line rule:line-length
+ body: |
+ Coverity run fixed today.
+
+ ${{FILE,path="output.txt"}}
+ failure: false
+ fixed: true
+ - fdio-infra-shiplogs:
+ maven-version: 'mvn36'
+