X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Fjenkins-init-script.sh;h=3309b00ab11322912a3e9d0c924f74ef84091f44;hb=787e024afbcc79f78f459c2144ab70ddc063e3fb;hp=efb8b1a79733a57fb878c801b71d453e9ddc6053;hpb=909d01215f4ec193d3552d823147f978a2c851ef;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/jenkins-init-script.sh b/jenkins-scripts/jenkins-init-script.sh index efb8b1a79..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. # @@ -9,13 +9,14 @@ # 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 +# shellcheck disable=SC1091 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 @@ -23,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