1 The files in this directory are for initializing a Jenkins minion just
2 before the cloud plugin hands the minion over to Jenkins.
4 The Jenkins 'init.sh' script will check for a project specific init
5 script: '$ciman_root/jenkins-init-scripts/local-init.sh'. If the file
6 exits and is executable, it will be executed. Note the local init
7 script will be executed before the 'jenkins' user has been created.
8 You can also call a project specific script from the Jenkins Manged
9 File after the call to 'init.sh'.
11 To use this create a Jenkins Managed File with the contents:
15 exec > /var/log/jenkins-init.log 2>&1
17 gerrit_host=gerrit.example.org
20 until host $gerrit_host &>/dev/null ; do
21 echo "Waiting until $gerrit_host is resolvable..."
25 git clone --recurse-submodules https://$gerrit_host/r/ci-management $ciman_root
27 # Specify swapspace on the minion
28 # SWAP_SIZE specifies the size of swapspace in GB If set to '0' no
29 # swapspace will be allocated If unset, 1GB swapspace will be
33 $ciman_root/global-jjb/jenkins-init-scripts/init.sh
37 echo "jenkins-init: Done"