diff options
author | dkhandel <dkhandel@localhost.localdomain> | 2018-08-20 12:11:04 +0530 |
---|---|---|
committer | Deepshikha Khandelwal <dkhandel@redhat.com> | 2018-08-20 15:14:50 +0530 |
commit | 271c45e9c21aa5ef724840a3182c494e8aed1992 (patch) | |
tree | 46cfe9e0b3bc40f186924186cca528a4b29c379d | |
parent | 06a1cdb2cfd32ba8de8bec3ca54d604a26e141da (diff) |
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 <dkhandel@redhat.com>
Change-Id: I4488105c0e7e46b1274e4d09d52a6ea057c0cd70
-rw-r--r-- | build-gluster-org/jobs/gd2-smoke.yml | 46 | ||||
-rw-r--r-- | build-gluster-org/scripts/gd2-smoke.sh | 9 |
2 files changed, 55 insertions, 0 deletions
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 |