serverless / platform-sdk

Serverless Platform SDK
Apache License 2.0
17 stars 7 forks source link

Bitbucket deployment for new dashboard #78

Closed sebastianarena closed 5 years ago

sebastianarena commented 5 years ago

Hello. I'm trying to use the new free dashboard with one of my projects. When I set the app and tenant in serverless.yml, and at the same time trying to use SERVERLESS_ACCESS_TOKEN as env variable to have the serverless CLI access the dashboard using my credentials, I get this error:

Unhandled rejection Error: {"errorMessage":"Page not found"}
    at _callee$ (/opt/atlassian/pipelines/agent/build/node_modules/@serverless/platform-sdk/src/utils/checkHttpResponse.js:19:9)
    at tryCatch (/opt/atlassian/pipelines/agent/build/node_modules/regenerator-runtime/runtime.js:45:40)
    at Generator.invoke [as _invoke] (/opt/atlassian/pipelines/agent/build/node_modules/regenerator-runtime/runtime.js:271:22)
    at Generator.prototype.(anonymous function) [as next] (/opt/atlassian/pipelines/agent/build/node_modules/regenerator-runtime/runtime.js:97:21)
    at step (/opt/atlassian/pipelines/agent/build/node_modules/@serverless/platform-sdk/dist/utils/checkHttpResponse.js:7:191)
    at /opt/atlassian/pipelines/agent/build/node_modules/@serverless/platform-sdk/dist/utils/checkHttpResponse.js:7:361
    at process._tickCallback (internal/process/next_tick.js:68:7)

As there's no way for me to do a sls login in the CI, I choose the env var way, but it seems its not working