Custom CI/CD configuration file doesn't allow manually triggering pipeline
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary When [specifying a Custom CI/CD configuration file](https://git.nurocorinternal.com/help/ci/pipelines/settings#specify-a-custom-cicd-configuration-file), the Pipelines view does not act as if a pipeline file exists. It is not possible to manually trigger a pipeline and the view suggests that the user create one from a template. Attempting to do so triggers an error because the project recognizes that "This project's pipeline configuration is located outside this repository". ### Steps to reproduce 1. Create a project. 2. Navigate to "Settings... CI/CD... General Pipelines" 3. Edit "CI/CD configuration file" path to point to an external pipeline location. 4. Navigate to "Pipelines" view. View behaves as if there is no pipeline on the project. 5. Attempt to create a pipeline from any template. Results in an error. ### What is the current *bug* behavior? - It isn't possible to manually trigger external pipeline even though it exists and has a workflow allowing "web" trigger. - The UX results in an error loop by suggesting the user create a pipeline from a template even though this isn't possible when an external pipeline location is configured. ### What is the expected *correct* behavior? - It should be possible to trigger the external pipeline from the "Pipelines" view as long as the workflow allows a "web" trigger. - The view should not suggest a pipeline file be created from a template when this isn't a possible action when an external pipeline configuration is specified. ### Relevant logs and/or screenshots ![image](/uploads/8b998bd1a447f2cc4ce29f214d045d7c/image.png) ![image](/uploads/887bd99048428881758b78797769b4ca/image.png) ![image](/uploads/299dfc5f63eaf2f826944bcc57191eb7/image.png) #### Results of GitLab environment info <!-- Input any relevant GitLab environment information if needed. --> <details> <summary>Expand for output related to GitLab environment info</summary> <pre> System information System: Ubuntu 20.04 Proxy: no Current User: git Using RVM: no Ruby Version: 3.1.4p223 Gem Version: 3.5.7 Bundler Version:2.5.8 Rake Version: 13.0.6 Redis Version: 7.0.15 Sidekiq Version:7.1.6 Go Version: unknown GitLab information Version: 16.11.6-ee Revision: 5b6a9df706f Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.13 URL: https://ourgitlabserver.com HTTP Clone URL: https://ourgitlabserver.com/some-group/some-project.git SSH Clone URL: git@ourgitlabserver.com:some-group/some-project.git Elasticsearch: yes Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.35.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 16.11.6 - default Git Version: 2.43.5 </pre> </details> #### Results of GitLab application Check <!-- Input any relevant GitLab application check information if needed. --> <details> <summary>Expand for output related to the GitLab application check</summary> <pre> Checking GitLab subtasks ... Checking GitLab Shell ... GitLab Shell: ... GitLab Shell version >= 14.35.0 ? ... OK (14.35.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Gitaly ... Gitaly: ... default ... OK Checking Gitaly ... Finished Checking Sidekiq ... Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1 Checking Sidekiq ... Finished Checking Incoming Email ... Incoming Email: ... Reply by email is disabled in config/gitlab.yml Checking Incoming Email ... Finished Checking LDAP ... LDAP: ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab App ... Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 2/1 ... yes 3/14 ... yes 3/15 ... yes 3/16 ... yes 3/27 ... yes 398/37 ... yes 8/40 ... yes 5/54 ... yes 76/55 ... yes 76/56 ... yes 76/57 ... yes 76/58 ... yes 76/59 ... yes 83/62 ... yes 83/63 ... yes 5/65 ... yes 5/66 ... yes 5/68 ... yes 3/69 ... yes 5/70 ... yes 5/71 ... yes 5/76 ... yes 5/77 ... yes 5/78 ... yes 83/79 ... yes 83/80 ... yes 102/82 ... yes 102/83 ... yes 102/87 ... yes 5/88 ... yes 5/89 ... yes 5/92 ... yes 5/94 ... yes 5/95 ... yes 10/96 ... yes 5/98 ... yes 5/99 ... yes 10/103 ... yes 10/104 ... yes 5/105 ... yes 5/107 ... yes 5/108 ... yes 5/109 ... yes 5/110 ... yes 5/111 ... yes 133/113 ... yes 133/114 ... yes 142/117 ... yes 147/121 ... yes 147/122 ... yes 147/123 ... yes 147/125 ... yes 10/127 ... yes 147/130 ... yes 147/131 ... yes 21/132 ... yes 147/133 ... yes 147/135 ... yes 147/138 ... yes 147/139 ... yes 147/140 ... yes 147/141 ... yes 5/142 ... yes 147/143 ... yes 147/144 ... yes 147/145 ... yes 83/146 ... yes 170/147 ... yes 83/150 ... yes 170/151 ... yes 83/152 ... yes 181/153 ... yes 181/154 ... yes 181/155 ... yes 181/156 ... yes 5/157 ... yes 5/158 ... yes 10/182 ... yes 75/183 ... yes 75/184 ... yes 75/185 ... yes 147/186 ... yes 3/187 ... yes 140/188 ... yes 147/189 ... yes 3/190 ... yes 3/191 ... yes 5/192 ... yes 5/193 ... yes 5/194 ... yes 5/195 ... yes 5/196 ... yes 5/197 ... yes 147/198 ... yes 5/199 ... yes 5/200 ... yes 5/201 ... yes 147/202 ... yes 5/203 ... yes 5/204 ... yes 142/205 ... yes 5/206 ... yes 5/212 ... yes 5/213 ... yes 102/214 ... yes 102/215 ... yes 102/216 ... yes 142/217 ... yes 142/218 ... yes 5/219 ... yes 4/220 ... yes 5/221 ... yes 5/222 ... yes 5/223 ... yes 5/224 ... yes 5/225 ... yes 3/226 ... yes 387/227 ... yes 395/228 ... yes 398/229 ... yes 5/231 ... yes 5/232 ... yes 10/233 ... yes 10/234 ... yes 5/235 ... yes 5/236 ... yes 5/237 ... yes 5/238 ... yes 255/239 ... yes 418/240 ... yes 418/241 ... yes 418/242 ... yes 10/243 ... yes 10/244 ... yes 10/245 ... yes 10/246 ... yes 10/247 ... yes 10/248 ... yes 433/251 ... yes 10/252 ... yes 32/253 ... yes 5/254 ... yes 83/255 ... yes 5/256 ... yes 5/259 ... yes 10/260 ... yes 10/261 ... yes 147/262 ... yes 10/263 ... yes 378/264 ... yes 378/265 ... yes 147/266 ... yes 378/267 ... yes 378/268 ... yes 378/270 ... yes 10/271 ... yes 10/272 ... yes 5/273 ... yes 5/274 ... yes 10/275 ... yes 10/276 ... yes 433/277 ... yes 477/278 ... yes 10/279 ... yes 481/280 ... yes 484/281 ... yes 147/282 ... yes 83/283 ... yes 10/284 ... yes 147/285 ... yes 5/286 ... yes 3/287 ... yes 5/288 ... yes 3/289 ... yes 21/290 ... yes 378/291 ... yes 5/292 ... yes 147/293 ... yes 47/294 ... yes 5/295 ... yes 10/296 ... yes 518/297 ... yes 83/298 ... yes 518/299 ... yes 40/300 ... yes 5/301 ... yes 525/302 ... yes 76/303 ... yes 76/304 ... yes 76/305 ... yes 147/306 ... yes 83/307 ... yes 147/308 ... yes 10/309 ... yes 5/310 ... yes 378/311 ... yes 76/312 ... yes 76/313 ... yes 10/315 ... yes 5/316 ... yes 398/317 ... yes Redis version >= 6.2.14? ... yes Ruby version >= 3.0.6 ? ... yes (3.1.4) Git user has default SSH configuration? ... yes Active users: ... 65 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... yes Checking GitLab App ... Finished Checking GitLab subtasks ... Finished </pre> </details> <!-- If you don't have /label privileges, follow up with an issue comment of `@gitlab-bot label ~"type::bug"` -->
issue