X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2Fupdate_software.sh;fp=tools%2Fupdate_software.sh;h=537512b12419b84e05a853cfcf4d35522808c7f7;hb=453d58c308e03511df2d51f7bac95b91e1789fbf;hp=52d03bb2aec7e8b18e10e4323b864ae73656a9fe;hpb=6401364f7691b9adb5d68c488b3f837430600104;p=yaml_builds.git diff --git a/tools/update_software.sh b/tools/update_software.sh index 52d03bb..537512b 100755 --- a/tools/update_software.sh +++ b/tools/update_software.sh @@ -1,4 +1,19 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. # +# # +# You may obtain a copy of the License at # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################## set -x TIMESTAMP=$(date +"%Y%m%d%H%M") @@ -8,20 +23,19 @@ exec 1> >(tee -a $LOGFILE) exec 2>&1 # Site specific variables -export OS_AUTH_URL="http://iam-sw.vran.k2.ericsson.se:80/v3" +export OS_AUTH_URL= export OS_USERNAME=shipyard -export OS_PASSWORD=password123 -REGION_NAME=MTN3 +export OS_PASSWORD= +REGION_NAME= tools/airship shipyard create configdocs ${REGION_NAME} --directory=/target/configs/promenade tools/airship shipyard commit configdocs -tools/airship shipyard create action update_software +SHIPYARD_ACTION=$(tools/airship shipyard create action update_software | awk '/update_software/ {print $2};') tools/airship shipyard get actions # Monitor the workflow -#SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/update_software/ {print $2};') -#tools/airship shipyard describe $SHIPYARD_ACTION +tools/airship shipyard describe $SHIPYARD_ACTION