diff options
Diffstat (limited to 'build-gluster-org')
-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 |