Adjust for karaf 4 not happening in carbon
[releng/builder.git] / jenkins-scripts / jenkins-init-script.sh
index 88c5eb620bf285281c51cbcbeb6b9a46108ed815..fe327e3f544fbcfe28e9bcefcde7364521a3dd50 100755 (executable)
@@ -9,14 +9,18 @@
 # 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
 ./create_jenkins_user.sh
+
+## add local environment changes post scripts
+./jenkins-init-script-local-env.sh