Add jenkins-init-script as entry point script 93/38993/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 May 2016 16:42:14 +0000 (12:42 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 May 2016 16:49:48 +0000 (12:49 -0400)
Allows us to simplify the Jenkins end to simply 2 commands:

    git clone https://git.opendaylight.org/gerrit/releng/builder /builder
    /builder/jenkins-scripts/jenkins-init-script.sh

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

diff --git a/jenkins-scripts/jenkins-init-script.sh b/jenkins-scripts/jenkins-init-script.sh
new file mode 100755 (executable)
index 0000000..dfb5ee8
--- /dev/null
@@ -0,0 +1,19 @@
+#!/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
+##############################################################################
+
+cd /builder/jenkins-scripts
+chmod +x *.sh
+./system_type.sh
+
+source /tmp/system_type.sh
+./basic_settings.sh
+./create_jenkins_user.sh
+./${SYSTEM_TYPE}.sh