Osthanes / utilities

Set of utility scripts
Apache License 2.0
9 stars 10 forks source link

Update of Cloud Foundry CLI #130

Open leifg opened 7 years ago

leifg commented 7 years ago

Following up on my docker problem (#129). I see this weird notice in my output:

2016-12-15 19:31:45 UTC : Existing Cloud Foundry CLI cf version 6.21.1-IDS+6fd3c9f-2016-08-16
2016-12-15 19:31:45 UTC : Installing Cloud Foundry CLI
2016-12-15 19:31:46 UTC : Successfully installed Cloud Foundry CLI cf version 6.13.0-e68ce0f-2015-10-15T22:53:58+00:

It looks like the Cloud Foundry CLI is downgraded during the process. I suppose it is supposed to upgrade to 6.22?

jgarcows commented 7 years ago

Sadly, that is working as designed and how all pipeline extensions that work with containers have to behave. Because the pipeline does not have a refresh token made available (just the bearer token) we have to use version 6.13 of cf in order to use the cf ic plugin.

Later versions of cf would cause the cf ic plugin to try to use a refresh token, which breaks things. The 6.13 version is installed at $EXT_DIR/cf.

So any calls using cf ic should be made using $EXT_DIR/cf ic. If you want to make other cf calls, you can use either cf (newer version) or $EXT_DIR/cf (6.13)