Skip to content
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

Inconsistent variable expansion #1451

Closed
atli-c opened this issue Dec 6, 2024 · 2 comments
Closed

Inconsistent variable expansion #1451

atli-c opened this issue Dec 6, 2024 · 2 comments

Comments

@atli-c
Copy link
Collaborator

atli-c commented Dec 6, 2024

Minimal .gitlab-ci.yml illustrating the issue

---
example:
  image: busybox
  environment:
    name: foobar_dev
    url: "http://${CI_ENVIRONMENT_SLUG}.local:3000/"
    action: start
    deployment_tier: development
  script:
    - printenv | sort | grep -E '^(CI_ENVIRONMENT)'

The actual script outputs CI_ENVIRONMENT_URL as expected, but one of the last lines from gitlab-ci-local itself is missing value from variable in url: …

parsing and downloads finished in 90 ms.
json schema validated in 135 ms
example starting busybox:latest (test)
example copied to docker volumes in 538 ms
example $ printenv | sort | grep -E '^(CI_ENVIRONMENT)'
example > CI_ENVIRONMENT_ACTION=start
example > CI_ENVIRONMENT_NAME=foobar_dev
example > CI_ENVIRONMENT_SLUG=foobar-dev
example > CI_ENVIRONMENT_TIER=development
example > CI_ENVIRONMENT_URL=http://foobar-dev.local:3000/
example finished in 986 ms

PASS example
example environment: { name: foobar_dev, url: http://.local:3000/ }
pipeline finished in 1.33 s

Expected behavior


example environment: { name: foobar_dev, url: http://foobar-dev.local:3000/ }

Host information
macOS Sequoia 15.1.1 - Intel x86_64 CPU
gitlab-ci-local 4.56.0

Containerd binary
OrbStack

Additional context
none

@ANGkeith
Copy link
Collaborator

ANGkeith commented Dec 8, 2024

fixed by #1443

@firecow firecow closed this as completed Dec 9, 2024
@firecow
Copy link
Owner

firecow commented Dec 9, 2024

Will be present in next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants