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
Host information
MacBook Pro running Sonoma 14.7.1 (23H222)
gitlab-ci-local 4.56.0
Containerd binary
Docker version 26.0.0, build 2ae903e
Additional context
Inside our GitLab CI workflow we have some know_hosts files being stored as raw text. Attempting to duplicate these variables anywhere but inside a job's variables results in the above. Attempting to read a file from the locations listed results in a file not found message.
Good spot on this bug, quite unlucky of you to encounter it 😅
you can consider this slightly cleaner workaround
# .gitlab-ci-local-variables.yml in local directory# https://github.com/firecow/gitlab-ci-local?tab=readme-ov-file#env-format
LOCAL_VAR_BEGINNING_WITH_PIPE_01='|1|local_var_example'
LOCAL_VAR_BEGINNING_WITH_PIPE_02="|2|local_var_example"
LOCAL_VAR_BEGINNING_WITH_PIPE_03=|3|local_var_example
LOCAL_VAR_BEGINNING_WITH_PIPE_04=|4|local_var_example
Minimal .gitlab-ci.yml illustrating the issue
.gitlab-ci-local-variables.yml in local directory
$HOME/.gitlab-ci-local/variables.yml
Expected behavior
gitlab-ci-local
should run and echo the following:Current behavior
GitLab CI Local appears to be interpreting the non-job variables as file paths.
Host information
MacBook Pro running Sonoma 14.7.1 (23H222)
gitlab-ci-local 4.56.0
Containerd binary
Docker version 26.0.0, build 2ae903e
Additional context
Inside our GitLab CI workflow we have some know_hosts files being stored as raw text. Attempting to duplicate these variables anywhere but inside a job's variables results in the above. Attempting to read a file from the locations listed results in a file not found message.
Minimal .gitlab-ci.yml showing off file not found
The text was updated successfully, but these errors were encountered: