From 35adc33717a2a9ca867c5a624904a963d8449ae6 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 16 Mar 2018 14:45:24 -0400 Subject: [PATCH] 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 --- shell/jenkins-configure-clouds.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- 2.16.6