3 screenshots to explain the issue
When I run the pipeline I've an error...
But the file exists
And it's good
3 screenshots to explain the issue
When I run the pipeline I've an error...
But the file exists
And it's good
.gitlab-ci.yml
file.gitlab-ci.yml
file location (Settings > CI/CD > General Pipelines), make sure that it points to the correct place in the repositoryIt happened to me also when I was specifying the .gitlab-ci.yml in a .yAml format, I am not exactly sure why this happens. I have tried to understand the difference between the two reading this question but it seems there should be no differences. I lost 30 min because of this, hope I can save someone else time.
In my case, I incorrectly assumed that glab
would run a pipeline for the current branch.
I was running glab cli run
on branch-1
which did have a .gitlab-ci.yml
. But it was trying to run a pipeline for master
, which didn't have a .gitlab-ci.yml
.
glab cli run -b branch-1
fixed it for me.