Merge "yaml file for bundle-based-reconciliaion script"
[releng/builder.git] / jenkins-scripts / jenkins-init-script.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 cd /builder/jenkins-scripts || exit 1
13 chmod +x -- *.sh
14 ./system_type.sh
15
16 # shellcheck disable=SC1091
17 source /tmp/system_type.sh
18 ./basic_settings.sh
19 "./${SYSTEM_TYPE}.sh"
20
21 # Create the jenkins user last so that hopefully we don't have to deal with
22 # guard files
23 ./create_jenkins_user.sh
24
25 ## add local environment changes post scripts
26 ./jenkins-init-script-local-env.sh
27
28 # Create a swap file
29 dd if=/dev/zero of=/swap count=1024 bs=1MiB
30 chmod 600 /swap
31 mkswap /swap
32 swapon /swap