Merge "Add labels for linking in configuration.rst"
[releng/global-jjb.git] / jenkins-init-scripts / init.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2016 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11
12 INIT_SCRIPTS_DIR="/opt/ciman/jjb/global-jjb/jenkins-init-scripts"
13
14 "$INIT_SCRIPTS_DIR/basic-settings.sh"
15 "$INIT_SCRIPTS_DIR/disable-firewall.sh"
16 "$INIT_SCRIPTS_DIR/create-swap-file.sh"
17
18 # Entry point for additional local minion customization
19 # Eg. OpenDaylight has additional bootstrap scripts depending on minion type.
20 if [ -f "/opt/ciman/jenkins-init-scripts/local-init.sh" ]; then
21     /opt/ciman/jenkins-init-scripts/local-init.sh
22 fi
23
24 # Create the jenkins user last so that hopefully we DO NOT have to deal with
25 # guard files
26 "$INIT_SCRIPTS_DIR/create-jenkins-user.sh"