X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Fjenkins-init-script.sh;h=3309b00ab11322912a3e9d0c924f74ef84091f44;hb=c4f5571795775e56ec9bef76c40247c4c34cd755;hp=fe327e3f544fbcfe28e9bcefcde7364521a3dd50;hpb=3bc78584ab661dea8b9d687f3f12b476393c0a92;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/jenkins-init-script.sh b/jenkins-scripts/jenkins-init-script.sh index fe327e3f5..3309b00ab 100755 --- a/jenkins-scripts/jenkins-init-script.sh +++ b/jenkins-scripts/jenkins-init-script.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # @@ -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