Add autorelease.sh spin-up script 41/22541/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 14 Jun 2015 00:59:52 +0000 (20:59 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 14 Jun 2015 01:01:12 +0000 (21:01 -0400)
Autorelease script to format and mount Rackspace additional data disk as
Jenkins workspace.

Change-Id: I0c223b2afb58d088e38bf10e643c0c053cafbdfc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jenkins-scripts/autorelease.sh [new file with mode: 0755]

diff --git a/jenkins-scripts/autorelease.sh b/jenkins-scripts/autorelease.sh
new file mode 100755 (executable)
index 0000000..a02d8f2
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Format and mount rackspace data disk
+mkfs -t ext3 /dev/xvde1
+mkdir /opt/jenkins/workspace
+mount /dev/xvde1 /opt/jenkins/workspace
+chown jenkins:jenkins /opt/jenkins/workspace