Skip to content

Commit

Permalink
Move ROUTE var to TravisCI env vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Mar 21, 2018
1 parent 6b5f474 commit f33796f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ applications:
- name: openlibertydev
domain: mybluemix.net
host: openlibertydev
- route: qa-guides.mybluemix.net
env:
JBP_CONFIG_LIBERTY: 'app_archive: {features: ["microProfile-1.0","webCache-1.0"]}'
5 changes: 1 addition & 4 deletions scripts/cf-blue-green.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ echo "============== LOGGING INTO CLOUD FOUNDRY =============="
./cf login -a=$BLUEMIX_API -s=$BLUEMIX_SPACE -o=$BLUEMIX_ORGANIZATION -u=$BLUEMIX_USER -p=$BLUEMIX_PASSWORD

# ==== VARIABLE SETUP ====
MANIFEST="manifest.yml"
# get route, app name (BLUE), and domain
ROUTE=`cat $MANIFEST | grep route: | awk '{print $3}'`

# ROUTE should be set in TravisCI repo
BLUE=`echo $ROUTE | sed -e 's,\..*,,'`
echo "App name is $BLUE"

Expand Down

0 comments on commit f33796f

Please sign in to comment.