diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-01-26 15:29:13 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-01-27 11:30:58 +0100 |
commit | 9f9356251d1e5d1812ac16859f8b6b6f20eeb8dd (patch) | |
tree | f8ba380db5a3363db8c350b6a9d40fd533d384c4 /tools/keystone/region.sh | |
parent | e7fe8818ece870b88556f7bad78b589b26d19151 (diff) |
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 <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'tools/keystone/region.sh')
-rwxr-xr-x | tools/keystone/region.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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} <service> -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 |