From 9f9356251d1e5d1812ac16859f8b6b6f20eeb8dd Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Thu, 26 Jan 2017 15:29:13 +0100 Subject: Fixes for Multisite Kingbird Jenkins jobs This patch contains the changes needed to get scripts working as part of Jenkins jobs. Changes include fixes for below issues. - Archive servicepass.ini and endpoints.ini under $WORKSPACE due to inability of Jenkins with archiving artifacts that are stored in directories which has no read permissions for. - Fetch servicepass.ini and endpoints.ini from corresponding locations and store them in $WORKSPACE. Change-Id: I88d477f5c6217a6ad7db250ae582fab2a17dc30e Signed-off-by: Fatih Degirmenci --- tools/keystone/region.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/keystone/region.sh') diff --git a/tools/keystone/region.sh b/tools/keystone/region.sh index 1ae108f..c42401d 100755 --- a/tools/keystone/region.sh +++ b/tools/keystone/region.sh @@ -27,7 +27,9 @@ source openrc # # openstack endpoint create --publicurl "" --adminurl "" --internalurl "" --region ${region} -ENDPOINT_FILE="/root/endpoints.ini" +# if running as part of Jenkins job, read the file from WORKSPACE +WORKSPACE=${WORKSPACE:-/root} +ENDPOINT_FILE="${WORKSPACE}/endpoints.ini" # Get an option from an INI file # iniget config-file section option -- cgit 1.2.3-korg