From: Thanh Ha Date: Fri, 16 Mar 2018 18:45:24 +0000 (-0400) Subject: Add instructions on how to test script locally X-Git-Tag: v0.19.0~5 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=35adc33717a2a9ca867c5a624904a963d8449ae6;p=releng%2Fglobal-jjb.git Add instructions on how to test script locally Useful for debugging the jenkins-cfg job if something is not working. Change-Id: I6062b754fb01a8da60ac73472133aa2dfd4ae2fa Signed-off-by: Thanh Ha --- diff --git a/shell/jenkins-configure-clouds.sh b/shell/jenkins-configure-clouds.sh index c2df0919..cd50da09 100644 --- a/shell/jenkins-configure-clouds.sh +++ b/shell/jenkins-configure-clouds.sh @@ -13,9 +13,22 @@ # Configuration is read from $WORKSPACE/jenkins-config/clouds/openstack/$cloud/cloud.cfg # # Requirements: lftools must be installed to /tmp/v/lftools +# # Parameters: +# +# WORKSPACE: The path to the local ci-management repository. # jenkins_silos: Space separated list of Jenkins silos to push -# configuration to. (default: jenkins) +# configuration to. This must match a configuration section +# in the config file located at +# ~/.config/jenkins_jobs/jenkins_jobs.ini config file. +# (default: jenkins) +# +# Local testing can be performed by exporting the parameters "WORKSPACE" and +# "jenkins_silos" as environment variables. For example: +# +# export WORKSPACE=/tmp/ci-management +# export jenkins_silos=sandbox +# bash ./jjb/global-jjb/shell/jenkins-configure-clouds.sh echo "---> jenkins-configure-clouds.sh" if [ ! -d "$WORKSPACE/jenkins-config/clouds" ]; then