Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add a swap file to build machines
[releng/builder.git]
/
jenkins-scripts
/
jenkins-init-script.sh
diff --git
a/jenkins-scripts/jenkins-init-script.sh
b/jenkins-scripts/jenkins-init-script.sh
index 88c5eb620bf285281c51cbcbeb6b9a46108ed815..3309b00ab11322912a3e9d0c924f74ef84091f44 100755
(executable)
--- a/
jenkins-scripts/jenkins-init-script.sh
+++ b/
jenkins-scripts/jenkins-init-script.sh
@@
-1,5
+1,5
@@
#!/bin/bash
#!/bin/bash
-#
@License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+#
SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
@@
-9,14
+9,24
@@
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-cd /builder/jenkins-scripts
-chmod +x *.sh
+cd /builder/jenkins-scripts
|| exit 1
+chmod +x
--
*.sh
./system_type.sh
./system_type.sh
+# shellcheck disable=SC1091
source /tmp/system_type.sh
./basic_settings.sh
source /tmp/system_type.sh
./basic_settings.sh
-./${SYSTEM_TYPE}.sh
+"./${SYSTEM_TYPE}.sh"
# Create the jenkins user last so that hopefully we don't have to deal with
# guard files
./create_jenkins_user.sh
# Create the jenkins user last so that hopefully we don't have to deal with
# guard files
./create_jenkins_user.sh
+
+## add local environment changes post scripts
+./jenkins-init-script-local-env.sh
+
+# Create a swap file
+dd if=/dev/zero of=/swap count=1024 bs=1MiB
+chmod 600 /swap
+mkswap /swap
+swapon /swap