Add checkstyle and build to Sweetcomb verify job 21/17921/2
authorHongjun Ni <hongjun.ni@intel.com>
Thu, 28 Feb 2019 14:00:29 +0000 (22:00 +0800)
committerHongjun Ni <hongjun.ni@intel.com>
Fri, 1 Mar 2019 09:30:57 +0000 (17:30 +0800)
Change-Id: Ib351a6f0758eaf6799fd2465dc8928931f1b3d86
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh [new file with mode: 0644]
jjb/sweetcomb/sweetcomb.yaml

diff --git a/jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh b/jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh
new file mode 100644 (file)
index 0000000..258c9e7
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ -f build-root/scripts/checkstyle.sh ];then
+    build-root/scripts/checkstyle.sh
+else
+    echo "Cannot find cat build-root/scripts/checkstyle.sh - skipping checkstyle"
+fi
index 5d6dccc..751de12 100644 (file)
           build-timeout: 120
 
     triggers:
+      - gerrit-trigger-checkstyle:
+          name: '{project}'
+          branch: '{branch}'
+
+    builders:
+      - config-file-provider:
+          files:
+            - file-id: '.packagecloud'
+              target: '/root'
+      - config-file-provider:
+          files:
+            - file-id: 'packagecloud_api'
+              target: '/root'
+      - shell:
+          !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
+      - shell:
+          !include-raw-escape:
+          - include-raw-sweetcomb-build.sh
+    publishers:
+      - archive:
+          artifacts: >
+            **/build-root/build-package/*.rpm,
+            **/build-root/build-package/*.deb,
+          allow-empty: 'true'
+          fingerprint: false
+          only-if-success: true
+          default-excludes: false
+      - fdio-infra-shiplogs:
+          maven-version: 'mvn33-new'
+      - naginator:
+          rerun-unstable-builds: false
+          max-failed-builds: 1
+          fixed-delay: 90
+
       - gerrit-trigger-patch-submitted:
           name: '{project}'
           branch: '{branch}'
           files:
             - file-id: 'packagecloud_api'
               target: '/root'
+      - shell:
+          !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
       - shell:
           !include-raw-escape:
           - include-raw-sweetcomb-build.sh