summaryrefslogtreecommitdiffstats
path: root/jjb/dmm
diff options
context:
space:
mode:
authorThanh Ha (zxiiro) <thanh.ha@linuxfoundation.org>2018-08-08 14:16:49 +0000
committerGerrit Code Review <gerrit@fd.io>2018-08-08 14:16:49 +0000
commit65828bfb56d7cf187226f5ccfeb8382ad2887451 (patch)
treeb8aabc56e3915aa75a8417878cbc96156fcc72f5 /jjb/dmm
parent5d2e4185751aee88826cad1f04226235e5719d7f (diff)
parentba6f53c37aac61fc86954715eb7db683cd0c80c6 (diff)
Merge "adding dmm checkstyle job"
Diffstat (limited to 'jjb/dmm')
-rw-r--r--jjb/dmm/dmm.yaml45
-rw-r--r--jjb/dmm/include-raw-dmm-test-checkstyle.sh23
2 files changed, 68 insertions, 0 deletions
diff --git a/jjb/dmm/dmm.yaml b/jjb/dmm/dmm.yaml
index 0a29ccbd7..3dec19e32 100644
--- a/jjb/dmm/dmm.yaml
+++ b/jjb/dmm/dmm.yaml
@@ -17,6 +17,7 @@
- project:
name: dmm
jobs:
+ - 'dmm-verify-{stream}-checkstyle'
- 'dmm-verify-{stream}-{os}'
- 'dmm-merge-{stream}-{os}'
- 'dmm-csit-verify-func-{stream}-{os}-virl'
@@ -29,6 +30,50 @@
branch: 'master'
- job-template:
+ name: 'dmm-verify-{stream}-checkstyle'
+
+ project-type: freestyle
+ node: '{os}-basebuild-4c-4g'
+ 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: 'dmm'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - os-parameter:
+ os: '{os}'
+
+ 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-trigger-patch-submitted:
+ name: 'dmm'
+ branch: '{branch}'
+
+ builders:
+ - shell:
+ !include-raw-escape: include-raw-dmm-test-checkstyle.sh
+
+ publishers:
+ - fdio-infra-shiplogs:
+ maven-version: 'mvn33-new'
+
+- job-template:
name: 'dmm-verify-{stream}-{os}'
project-type: freestyle
diff --git a/jjb/dmm/include-raw-dmm-test-checkstyle.sh b/jjb/dmm/include-raw-dmm-test-checkstyle.sh
new file mode 100644
index 000000000..3811554ec
--- /dev/null
+++ b/jjb/dmm/include-raw-dmm-test-checkstyle.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Copyright (c) 2018 Huawei Technologies Co.,Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+cd build/
+cmake ..
+make checkstyle
+if [ $? -eq 0 ]; then
+ echo "DMM checkstyle is SUCCESS"
+else
+ echo "DMM checkstyle has FAILED"
+ exit 1
+fi \ No newline at end of file