summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Kern <ejk@cisco.com>2018-03-27 12:51:25 -0600
committerEd Kern <ejk@cisco.com>2018-03-27 12:51:25 -0600
commite3fd222de8205a4df1e2be412b1af935e1521419 (patch)
tree27d94ce420478f5f354c0dbf22d3c4dbcbb7786b
parentc4551455944692ea557007a8ebfb6a98349cccbf (diff)
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 <ejk@cisco.com>
-rw-r--r--jjb/vpp/vpp.yaml71
1 files changed, 71 insertions, 0 deletions
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}'
@@ -228,6 +231,74 @@
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}'
project-type: freestyle