summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build-gluster-org/jobs/regression-test-with-multiplex.yml39
-rw-r--r--build-gluster-org/scripts/regression-test-with-multiplex.sh66
2 files changed, 105 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/regression-test-with-multiplex.yml b/build-gluster-org/jobs/regression-test-with-multiplex.yml
new file mode 100644
index 0000000..0e0e08b
--- /dev/null
+++ b/build-gluster-org/jobs/regression-test-with-multiplex.yml
@@ -0,0 +1,39 @@
+- job:
+ name: regression-test-with-multiplex
+ node: rackspace_regression_2gb
+ description: Regression test run every 8h with brick multiplex
+ project-type: freestyle
+ concurrent: true
+
+ scm:
+ - git:
+ branches:
+ - origin/master
+ url: git://review.gluster.org/glusterfs.git
+ wipe-workspace: false
+
+ properties:
+ - one-build-per-node
+
+ triggers:
+ - timed: "H 4,12,20 * * *"
+
+ publishers:
+ - email:
+ recipients: maintainers@gluster.org
+ send-to-individuals: true
+ - post-tasks:
+ - matches:
+ - log-text: Build was aborted
+ script: |
+ sudo reboot
+
+ builders:
+ - shell: !include-raw: ../scripts/regression-test-with-multiplex.sh
+
+ wrappers:
+ - timestamps
+ - timeout:
+ timeout: 500
+ abort: true
+ type: absolute
diff --git a/build-gluster-org/scripts/regression-test-with-multiplex.sh b/build-gluster-org/scripts/regression-test-with-multiplex.sh
new file mode 100644
index 0000000..e0989d5
--- /dev/null
+++ b/build-gluster-org/scripts/regression-test-with-multiplex.sh
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+MY_ENV=`env | sort`
+BURL=${BUILD_URL}consoleFull
+
+# Display all environment variables in the debugging log
+echo "Start time $(date)"
+echo
+echo "Display all environment variables"
+echo "*********************************"
+echo
+echo "$MY_ENV"
+echo
+
+
+# Remove any gluster daemon leftovers from aborted runs
+sudo -E bash /opt/qa/cleanup.sh
+
+# Clean up the git repo
+sudo rm -rf $WORKSPACE/.gitignore $WORKSPACE/*
+sudo chown -R jenkins:jenkins $WORKSPACE
+cd $WORKSPACE
+git reset --hard HEAD
+
+# Apply with brick multiplex patch
+git pull --no-edit https://review.gluster.org/glusterfs refs/changes/45/17145/5
+
+# Clean up other Gluster dirs
+sudo rm -rf /var/lib/glusterd/* /build/install /build/scratch >/dev/null 2>&1
+
+# Remove the many left over socket files in /var/run
+sudo rm -f /var/run/????????????????????????????????.socket >/dev/null 2>&1
+
+# Remove GlusterFS log files from previous runs
+sudo rm -rf /var/log/glusterfs/* /var/log/glusterfs/.cmd_log_history >/dev/null 2>&1
+
+JDIRS="/var/log/glusterfs /var/lib/glusterd /var/run/gluster /d /d/archived_builds /d/backends /d/build /d/logs /home/jenkins/root"
+sudo mkdir -p $JDIRS
+sudo chown jenkins:jenkins $JDIRS
+chmod 755 $JDIRS
+
+# Build Gluster
+echo "Start time $(date)"
+echo
+echo "Build GlusterFS"
+echo "***************"
+echo
+/opt/qa/build.sh
+RET=$?
+if [ $RET != 0 ]; then
+ # Build failed, so abort early
+ exit $RET
+fi
+echo
+
+# Run the regression test
+echo "Start time $(date)"
+echo
+echo "Run the regression test"
+echo "***********************"
+echo
+sudo -E bash /opt/qa/regression.sh
+
+RET=$?
+
+exit $RET