Closed bcouetil closed 1 month ago
problem can be replicated but I have a side question
but in real life I need them to have a longer string, for example "$CI_DEFAULT_BRANCH-test".
do you have a concrete example that works in the gitlab-ci ?
I tried the following but it didnt work
# CI_COMMIT_BRANCH=main2
# CI_DEFAULT_BRANCH=main
---
alpine:
rules:
# - if: $CI_COMMIT_BRANCH == "main2" # triggers pipeline
- if: $CI_COMMIT_BRANCH == "${CI_DEFAULT_BRANCH}2" # does not trigger pipeline
image: alpine
script:
- echo "Job should run"
You are right, sorry, my full use case worked on GitLab CI but for another reason !
Thank you for your time.
Closing.
Hello, long time no see, thank you for the great work 🤗
I encounter a rule problem using quotes. example is simple, I could remove the quote for it, but in real life I need them to have a longer string, for example "$CI_DEFAULT_BRANCH-test".
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
No error
Host information
MacOS gitlab-ci-local 4.49.0
Containerd binary
Orbstack