From 271c45e9c21aa5ef724840a3182c494e8aed1992 Mon Sep 17 00:00:00 2001 From: dkhandel Date: Mon, 20 Aug 2018 12:11:04 +0530 Subject: GD2 smoke test job on glusterfs patch This non-voting job will run GD2 against submitted glusterfs patches to identify any new changes that break GD2. Fixes: bz#1560967 Signed-off-by: Deepshikha Khandelwal Change-Id: I4488105c0e7e46b1274e4d09d52a6ea057c0cd70 --- build-gluster-org/jobs/gd2-smoke.yml | 46 ++++++++++++++++++++++++++++++++++ build-gluster-org/scripts/gd2-smoke.sh | 9 +++++++ 2 files changed, 55 insertions(+) create mode 100644 build-gluster-org/jobs/gd2-smoke.yml create mode 100644 build-gluster-org/scripts/gd2-smoke.sh (limited to 'build-gluster-org') diff --git a/build-gluster-org/jobs/gd2-smoke.yml b/build-gluster-org/jobs/gd2-smoke.yml new file mode 100644 index 0000000..5537b68 --- /dev/null +++ b/build-gluster-org/jobs/gd2-smoke.yml @@ -0,0 +1,46 @@ +- job: + name: gd2-smoke + node: smoke7 + description: GD2 smoke test on glusterFS patch + project-type: freestyle + + scm: + - glusterfs + + triggers: + - gerrit: + trigger-on: + - patchset-created-event: + exclude-drafts: false + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: "recheck smoke" + server-name: review.gluster.org_for-smoke-jobs + skip-vote: + failed: true + unstable: true + notbuilt: true + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'glusterfs' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + + parameters: + - string: + default: refs/heads/master + description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master' + name: GERRIT_REFSPEC + - string: + default: master + description: 'Name of the branch you want to build from. We usually build from master' + name: GERRIT_BRANCH + + builders: + - shell: !include-raw: ../scripts/gd2-smoke.sh + + wrappers: + - timestamps diff --git a/build-gluster-org/scripts/gd2-smoke.sh b/build-gluster-org/scripts/gd2-smoke.sh new file mode 100644 index 0000000..85db9bf --- /dev/null +++ b/build-gluster-org/scripts/gd2-smoke.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +# build the glusterfs source code +/opt/qa/build.sh + +# run gd2 unit tests script +/opt/qa/glusterd2-test.sh -- cgit