summaryrefslogtreecommitdiffstats
path: root/jenkins-scripts/jenkins-init-script.sh
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2016-09-23 10:56:38 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2016-09-23 12:01:57 -0700
commit128b3e738f0a3c30342b0d1c7554a3acc49ca8b7 (patch)
treee195b0cf48863298a311b0652867e1e4c1ed66e3 /jenkins-scripts/jenkins-init-script.sh
parent490530fd80827046db0eca6eb016521f316a4583 (diff)
Jenkins spin-up scripts
Scripts used for Jenkins minion startup when used with OpenStack plugin managed minions Change-Id: I616222a0fab12d8f283b5e633a612551c0d5f313 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jenkins-scripts/jenkins-init-script.sh')
-rwxr-xr-xjenkins-scripts/jenkins-init-script.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/jenkins-scripts/jenkins-init-script.sh b/jenkins-scripts/jenkins-init-script.sh
new file mode 100755
index 000000000..67987b54d
--- /dev/null
+++ b/jenkins-scripts/jenkins-init-script.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2016 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+# vim: ts=4 sw=4 sts=4 et :
+
+cd /ci-management/jenkins-scripts
+chmod +x ./*.sh
+./system_type.sh
+
+source /tmp/system_type.sh
+./basic_settings.sh
+if [ -f "${SYSTEM_TYPE}.sh" ]
+then
+ ./"${SYSTEM_TYPE}.sh"
+fi
+
+# Create the jenkins user last so that hopefully we don't have to deal with
+# guard files
+./create_jenkins_user.sh