52d03bb2aec7e8b18e10e4323b864ae73656a9fe
[yaml_builds.git] / tools / update_software.sh
1 #!/bin/bash
2
3 set -x
4 TIMESTAMP=$(date +"%Y%m%d%H%M")
5 LOGFILE=/var/log/update_software_$TIMESTAMP.log
6 echo "logging to $LOGFILE"
7 exec 1> >(tee -a $LOGFILE)
8 exec 2>&1
9
10 # Site specific variables
11 export OS_AUTH_URL="http://iam-sw.vran.k2.ericsson.se:80/v3"
12 export OS_USERNAME=shipyard
13 export OS_PASSWORD=password123
14 REGION_NAME=MTN3
15
16 tools/airship shipyard create configdocs ${REGION_NAME} --directory=/target/configs/promenade
17
18 tools/airship shipyard commit configdocs
19
20 tools/airship shipyard create action update_software
21
22 tools/airship shipyard get actions
23
24 # Monitor the workflow
25 #SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/update_software/ {print $2};')
26 #tools/airship shipyard describe $SHIPYARD_ACTION
27