我正在尝试将应用程序从 Travis 部署到 Cloud Foundry。
我的 .travis.yml 看起来像这样:
deploy:
provider: cloudfoundry
api: https://api.run.pivotal.io
username:
secure: "... secure username, generated with travis cli"
password:
secure: "... secure password, generated with travis cli"
organization: my-org
space: development
on:
repo: username/repository
branch: master
组织、空间、存储库、加密的用户名和密码经过双重检查并且正确无误。
然而,travis log 告诉我:
Installing deploy dependencies
Preparing deploy
cf
Setting api endpoint to https://api.run.pivotal.io...
OK
API endpoint: https://api.run.pivotal.io (API version: 2.37.0)
Not logged in. Use 'cf login' to log in.
API endpoint: https://api.run.pivotal.io
Authenticating...
Credentials were rejected, please try again.
手动登录就像一个魅力。 任何人都知道问题可能是什么?
我不确定是我、travis 还是 Cloud Foundry (PWS) 搞砸了。