You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into an error when trying to publish a template to a private gitlab server. The template is the default template provided with create-backstag-app. I've edited the publish action to publish to gitlab.
[1](http://localhost:3000/...) TIMESTAMP Beginning step Publish
[2](http://localhost:3000/...) TIMESTAMP HTTPError: Response code 400 (Bad Request)
[3](http://localhost:3000/...) at Request.<anonymous> (/Users/USERNAME/Desktop/projects/backstage/node_modules/got/dist/source/as-promise/index.js:118:42)
[4](http://localhost:3000/...) at runMicrotasks (<anonymous>)
[5](http://localhost:3000/...) at processTicksAndRejections (node:internal/process/task_queues:96:5)
MY_TOKEN is a gitlab private access token with the scopes api, read_api, read_registry, write_registry, read_repository, write_repository. It is used in the gitlab integration as well, and successfully pulls components from the server.
Figure it's gotta be something simple I'm missing, but error messaging hasn't been helpful. For repo url I've tried every combination of group name, repo, and adding .git on the end. None seem to work.
Node: v16.1.0
Backstage: 1.5.0
The text was updated successfully, but these errors were encountered:
So I think that you want to drop the token: MY_TOKEN from template.yaml and it should start to work automatically as you have it defined in the integrations.config you shouldn't have to defined it twice. If that doesnt work then it could be something to do with the permissions for creating a repository in the right place. What are you setting in the RepoUrlPicker component as owner and host?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Running into an error when trying to publish a template to a private gitlab server. The template is the default template provided with create-backstag-app. I've edited the publish action to publish to gitlab.
Relevant configs...
app-config.yml
template.yml
And the error message:
MY_TOKEN is a gitlab private access token with the scopes api, read_api, read_registry, write_registry, read_repository, write_repository. It is used in the gitlab integration as well, and successfully pulls components from the server.
Figure it's gotta be something simple I'm missing, but error messaging hasn't been helpful. For repo url I've tried every combination of group name, repo, and adding .git on the end. None seem to work.
Node: v16.1.0
Backstage: 1.5.0
The text was updated successfully, but these errors were encountered: