Pipeline Editor not bringing in included config from branch
Summary
It seems that when you use the Pipeline Editor on a non-default branch, with a pipeline that that adds config with: include: local
, it does not bring in the correct version of the included file.
Steps to reproduce
In my test project, I had a version of this config on master:
main-branch-job:
script:
- echo
include:
- local: 'include-file.yml'
and include-file.yml
:
included-job:
script:
- echo "This job was added with include"
Then I created a new branch, and edited include-file.yml
:
included-job-2:
script:
- echo "This job was added with include in my branch, not master"
Finally, I went to the pipeline editor and selected my branch, and saw two issues:
- The View merged YAML tab did not show
included-job-2
. In fact, if I pushed new commits toinclude-file.yml
on master, they showed up in the merged YAML for my branch. - (separate issue, but I just noticed) The pipeline at the top was not the latest pipeline in my branch, it was the latest pipeline on master.
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)