Merge "Add a swap file to build machines"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 20 Feb 2018 15:33:15 +0000 (15:33 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 20 Feb 2018 15:33:15 +0000 (15:33 +0000)
jenkins-scripts/jenkins-init-script.sh

index e79228f336442c5164aded132bf7455a0bf7e21b..3309b00ab11322912a3e9d0c924f74ef84091f44 100755 (executable)
@@ -24,3 +24,9 @@ source /tmp/system_type.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