GitLab CI Pipeline:管道无法运行

Tho*_*ini 6 gitlab gitlab-ci gitlab-ci.yml

我不明白为什么我的 Repo 的 GitLab CI Pipelines 无法运行。我有一个.gitlab-ci.yml文件并启用了该功能,但管道无法运行。另外,如果我尝试手动触发管道,我会收到以下错误。

Pipeline cannot be run.
Pipeline will not run for the selected trigger. The rules configuration prevented any jobs from being added to the pipeline.
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

CI 功能已启用。

在此输入图像描述

这是我的.gitlab-ci.yml文件。

Pipeline cannot be run.
Pipeline will not run for the selected trigger. The rules configuration prevented any jobs from being added to the pipeline.
Run Code Online (Sandbox Code Playgroud)

谢谢你!

Tho*_*ini 13

正如 D Malan 在评论中指出的那样,我已将运行限制在分支onlymain。但分支名称实际上是master

所以我只是将规则形式更改mainmaster现在它正在运行