Make sure that jjb-cleanup.sh allows unbound vars
[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/package-listing.sh"
15 "$INIT_SCRIPTS_DIR/basic-settings.sh"
16 "$INIT_SCRIPTS_DIR/disable-firewall.sh"
17 "$INIT_SCRIPTS_DIR/create-swap-file.sh"
18
19 # Entry point for additional local minion customization
20 # Eg. OpenDaylight has additional bootstrap scripts depending on minion type.
21 if [ -f "/opt/ciman/jenkins-init-scripts/local-init.sh" ]; then
22     /opt/ciman/jenkins-init-scripts/local-init.sh
23 fi
24
25 # Create the jenkins user last so that hopefully we DO NOT have to deal with
26 # guard files
27 "$INIT_SCRIPTS_DIR/create-jenkins-user.sh"