summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs
diff options
context:
space:
mode:
authordkhandel <dkhandel@localhost.localdomain>2018-04-25 14:51:16 +0530
committerNigel Babu <nigelb@redhat.com>2018-05-21 07:21:29 +0000
commit0c78b5732f35b319597ea2b9518f94177a48b4ff (patch)
tree0808f097e2c88d9effab3ab87ca9d3ae26599292 /build-gluster-org/jobs
parent1d3feff49ce46b63ab27a744b052114d5a126f07 (diff)
Job to run the distributed regression testing framework
Change-Id: Ib3996e81790104068f51b980fd4229dc14c695b3
Diffstat (limited to 'build-gluster-org/jobs')
-rw-r--r--build-gluster-org/jobs/distributed-regression.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/distributed-regression.yml b/build-gluster-org/jobs/distributed-regression.yml
new file mode 100644
index 0000000..513f108
--- /dev/null
+++ b/build-gluster-org/jobs/distributed-regression.yml
@@ -0,0 +1,59 @@
+- job:
+ name: distributed-regression
+ node: regression7
+ description: Run regression with distributed test framework
+ project-type: freestyle
+ concurrent: true
+
+ scm:
+ - git:
+ branches:
+ - $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+ choosing-strategy: gerrit
+ url: git://review.gluster.org/glusterfs.git
+
+ properties:
+ - discard-after-x:
+ x: 30
+ - one-build-per-node
+
+ triggers:
+ - timed: "0 */4 * * *"
+
+ 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
+ - string:
+ default: '4'
+ description: Number of machines to launch
+ name: MACHINES_COUNT
+
+ builders:
+ - shell: |
+ ssh-keygen -f ${WORKSPACE}/key -t rsa -b 4096
+ /opt/qa/distributed-tests/rackspace-server-manager.py create -n ${MACHINES_COUNT}
+ - ansible-playbook:
+ playbook: '/opt/qa/distributed-tests/distributed-server.yml'
+ inventory-type: 'path'
+ inventory:
+ path: ${WORKSPACE}/hosts
+ - conditional-step:
+ condition-kind: shell
+ condition-command: !include-raw: ../scripts/distributed-regression.py
+ steps:
+ - shell: /opt/qa/distributed-tests/rackspace-server-manager.py delete
+
+ wrappers:
+ - timestamps
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: e423d7f9-edaf-45ea-aa8f-9c3f8e6563f1
+ username: USERNAME
+ password: PASSWORD