From 84127d5651703c700255afbd2575b98d91304242 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Thu, 28 Feb 2019 22:00:29 +0800 Subject: [PATCH] Add checkstyle and build to Sweetcomb verify job Change-Id: Ib351a6f0758eaf6799fd2465dc8928931f1b3d86 Signed-off-by: Hongjun Ni --- jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh | 7 +++++ jjb/sweetcomb/sweetcomb.yaml | 36 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh diff --git a/jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh b/jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh new file mode 100644 index 000000000..258c9e7e2 --- /dev/null +++ b/jjb/sweetcomb/include-raw-sweetcomb-checkstyle.sh @@ -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 diff --git a/jjb/sweetcomb/sweetcomb.yaml b/jjb/sweetcomb/sweetcomb.yaml index 5d6dccc6f..751de128d 100644 --- a/jjb/sweetcomb/sweetcomb.yaml +++ b/jjb/sweetcomb/sweetcomb.yaml @@ -77,6 +77,40 @@ 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}' @@ -133,6 +167,8 @@ 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 -- 2.16.6