Not able to run manual pipeline via UI, with custom CI paths
Summary
When a project has a custom CI paths, and it has never ran any pipelines before, you won't be able to run a manual pipeline in the UI. You would need to first run a scheduled pipeline (or a pipeline via the API) in order to be able to run future pipelines manually via the UI.
Steps to reproduce
- Host a CI file: https://gitlab.com/nelbacha/test-hosting-ci-file/-/blob/master/.gitlab-ci.yml
- Create a new project: https://gitlab.com/nelbacha/test-cusom-ci-path
- In the project, specify a custom CI path:
- Go to your project's pipelines, and notice that you can't trigger a manual pipeline.
- Workaround; trigger a manual pipeline via the API:
curl --request POST --header "PRIVATE-TOKEN: <PAT>" "https://gitlab.com/api/v4/projects/17396272/pipeline?ref=master"
- Notice that pipeline runs, and that from now on you can run manual pipelines via the UI
Example Project
https://gitlab.com/nelbacha/test-cusom-ci-path
What is the current bug behavior?
You can't run manual pipeline UI
What is the expected correct behavior?
You can run manual pipeline in UI
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
This bug happens on GitLab.com
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)
Possible fixes
The pipeline table nav controls will never be rendered because the user has not made a request