Skip to content

Unable to set user environment variables for GitLab repos with nested groups #2702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vymarkov opened this issue Jan 8, 2021 · 5 comments · Fixed by #7978
Closed

Unable to set user environment variables for GitLab repos with nested groups #2702

vymarkov opened this issue Jan 8, 2021 · 5 comments · Fixed by #7978
Labels
git provider: gitlab meta: never-stale This issue can never become stale team: webapp Issue belongs to the WebApp team type: bug Something isn't working

Comments

@vymarkov
Copy link

vymarkov commented Jan 8, 2021

Describe the bug

I can't set environment variable for nested groups, for instance, nifty-panini/backend/gitpod-example.
Gitlab allows to create nested groups and place repo at under needed group, it's very often use case.

So I wanna have ability set variables like NPM_TOKEN under root group to use this variable on all repos under group without need to set variable to each repo.

Currently I can't set variable due to some bug or it's not implemented.

Steps to reproduce

  1. Go to Settings UI and set environment variable BARFOO with value foobat and Organization/Repository with value nifty-panini/*
  2. Open with GitPod with enabled Code editor by default by using link:
    https://gitpod.io/#/https://gitlab.com/nifty-panini/backend/gitpod-example/-/tree/master/
  3. echo $BARFOO to verify that environment variable is present.
  4. BARFOO is not set

I've tested it on Code / Theia editor, it doesn't work on both.

Expected behavior

I wanna set env variable for nested group on Gitlab and use this variable on each repo that belongs to the group.

Additional information

image

Workspace about info:

Version: 1.49.0
Commit: 20ded0d97c41cb686098d14b9e1f0533177300d1
Date: 2020-12-17T09:27:27.064Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 OPR/73.0.3856.284
Workspace ID: c81ce827-d4bb-4c8f-b989-6fb869640014

Example repository

https://gitlab.com/nifty-panini/backend/gitpod-example/-/tree/master/

@vymarkov
Copy link
Author

vymarkov commented Jan 8, 2021

according to docs it should work without issues, but may be implementation should be adjusted to Gitlab use case

@corneliusludmann
Copy link
Contributor

Related: #1358

@stale
Copy link

stale bot commented Mar 17, 2021

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.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Mar 17, 2021
@vymarkov
Copy link
Author

it's still relevant

@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Mar 17, 2021
@corneliusludmann corneliusludmann added the meta: never-stale This issue can never become stale label Mar 17, 2021
@clayton-bridge
Copy link

Any update on this? I'm having this same problem.

@corneliusludmann corneliusludmann added the team: webapp Issue belongs to the WebApp team label Feb 1, 2022
@jldec jldec changed the title [Code] Unable to set environment variable for repo with nested groups Unable to set user environment variables for GitLab repos with nested groups Feb 2, 2022
@roboquat roboquat moved this to Done in 🍎 WebApp Team Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git provider: gitlab meta: never-stale This issue can never become stale team: webapp Issue belongs to the WebApp team type: bug Something isn't working
Projects
Archived in project
3 participants