From: Ed Kern Date: Tue, 27 Mar 2018 18:51:25 +0000 (-0600) Subject: VPP: Added checkstyle only verify job X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e3fd222de8205a4df1e2be412b1af935e1521419;p=ci-management.git VPP: Added checkstyle only verify job This is step one to have a fake pipeline starting with checkstyle that then kicks off other verify jobs on success. Currently comment regex trigger only Change-Id: I5b3e56605bf267728eafbb298b4c6f22c7c748b3 Signed-off-by: Ed Kern --- diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index 3fc0a2054..0ba4b92cb 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -40,6 +40,7 @@ - 'vpp-csit-verify-virl-{stream}' - 'vpp-csit-verify-os-virl-{stream}' - 'vpp-csit-verify-hw-perf-{stream}' + - 'vpp-checkstyle-verify-{stream}' project: 'vpp' stream: - master: @@ -96,6 +97,8 @@ - patchset-uploaded-event: 'false' - comment-added-contains-event: comment-contains-value: 'betacheck' + - comment-added-contains-event: + comment-contains-value: 'checkstyle_success' projects: - project-compare-type: 'ANT' project-pattern: '{project}' @@ -227,6 +230,74 @@ maven-version: 'mvn33-new' archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' +- job-template: + name: 'vpp-checkstyle-verify-{stream}' + + project-type: freestyle + node: '{os}-us' + concurrent: true + + logrotate: + 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: '{os}' + - repo-name-parameter: + repo-name: '{repo-stream-part}.ubuntu.xenial.main' + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit: + server-name: 'Primary' + trigger-on: + - patchset-uploaded-event: 'false' + - comment-added-contains-event: + comment-contains-value: 'checkstylecheck' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + override-votes: true + gerrit-build-notbuilt-verified-value: 0 + gerrit-build-successful-verified-value: 0 + notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.' + failed-message: 'Checkstyle failed. No further verify jobs will be started.' + successful-message: 'checkstyle_success' + + builders: + - shell: + !include-raw-escape: include-raw-vpp-checkstyle.sh + - shell: + !include-raw-escape: include-raw-vpp-test-checkstyle.sh + + publishers: + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' + - naginator: + rerun-unstable-builds: true + max-failed-builds: 1 + fixed-delay: 10 + - job-template: name: 'vpp-verify-{stream}-{os}'