Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
17055c84
提交
17055c84
编辑于
2 months ago
作者:
Igor Drozdov
浏览文件
操作
下载
补丁
差异文件
Run scheduled pipeline for rails-next
上级
65242de7
No related branches found
No related tags found
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
.gitlab-ci.yml
+1
-1
1 个添加, 1 个删除
.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+9
-0
9 个添加, 0 个删除
.gitlab/ci/rules.gitlab-ci.yml
spec/dot_gitlab_ci/ci_configuration_validation/branch_pipeline_spec.rb
+17
-0
17 个添加, 0 个删除
...ab_ci/ci_configuration_validation/branch_pipeline_spec.rb
有
27 个添加
和
1 个删除
.gitlab-ci.yml
+
1
−
1
浏览文件 @
17055c84
...
@@ -112,7 +112,7 @@ workflow:
...
@@ -112,7 +112,7 @@ workflow:
# This variable can be specified in manual or scheduled pipelines to run CI with the next Rails version.
# This variable can be specified in manual or scheduled pipelines to run CI with the next Rails version.
# Specifying BUNDLE_GEMFILE: Gemfile.next wouldn't work because QA jobs require
# Specifying BUNDLE_GEMFILE: Gemfile.next wouldn't work because QA jobs require
# BUNDLE_GEMFILE to be Gemfile even with the next Rails version pipelines.
# BUNDLE_GEMFILE to be Gemfile even with the next Rails version pipelines.
-
if
:
'
$
RUN_WITH_NEXT_RAILS_VERSION
'
-
if
:
'
$
CI_COMMIT_BRANCH
==
"rails-next"
&&
$CI_PIPELINE_SOURCE
==
"schedule"
'
variables
:
variables
:
<<
:
*next-ruby-variables
<<
:
*next-ruby-variables
BUNDLE_GEMFILE
:
Gemfile.next
BUNDLE_GEMFILE
:
Gemfile.next
...
...
此差异已折叠。
点击以展开。
.gitlab/ci/rules.gitlab-ci.yml
+
9
−
0
浏览文件 @
17055c84
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
||
$CI_COMMIT_REF_NAME
=~
/^\d+-\d+-auto-deploy-\d+$/
||
$CI_COMMIT_REF_NAME
=~
/^\d+-\d+-auto-deploy-\d+$/
||
$CI_COMMIT_REF_NAME
=~
/^security\//
||
$CI_COMMIT_REF_NAME
=~
/^security\//
||
$CI_COMMIT_REF_NAME
=~
/^ruby-next$/
||
$CI_COMMIT_REF_NAME
=~
/^ruby-next$/
||
$CI_COMMIT_REF_NAME
=~
/^rails-next$/
)
)
)
)
||
||
...
@@ -216,6 +217,9 @@
...
@@ -216,6 +217,9 @@
.if-ruby-branch
:
&if-ruby-branch
.if-ruby-branch
:
&if-ruby-branch
if
:
'
$CI_COMMIT_BRANCH
==
"ruby-next"
||
(($CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_EVENT_TYPE
!=
"merge_train")
&&
$CI_MERGE_REQUEST_LABELS
=~
/pipeline:run-in-ruby\d+(_\d)*/)'
if
:
'
$CI_COMMIT_BRANCH
==
"ruby-next"
||
(($CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_EVENT_TYPE
!=
"merge_train")
&&
$CI_MERGE_REQUEST_LABELS
=~
/pipeline:run-in-ruby\d+(_\d)*/)'
.if-rails-next-branch
:
&if-rails-next-branch
if
:
'
$CI_COMMIT_BRANCH
==
"rails-next"'
.if-observability-skip-e2e-jobs
:
&if-observability-skip-e2e-jobs
.if-observability-skip-e2e-jobs
:
&if-observability-skip-e2e-jobs
if
:
'
$SKIP_GITLAB_OBSERVABILITY_BACKEND_TRIGGER
||
$GITLAB_OBSERVABILITY_BACKEND_PIPELINE_TRIGGER_TOKEN
==
null
||
$GITLAB_OBSERVABILITY_BACKEND_TOKEN_FOR_CI_SCRIPTS
==
null'
if
:
'
$SKIP_GITLAB_OBSERVABILITY_BACKEND_TRIGGER
||
$GITLAB_OBSERVABILITY_BACKEND_PIPELINE_TRIGGER_TOKEN
==
null
||
$GITLAB_OBSERVABILITY_BACKEND_TOKEN_FOR_CI_SCRIPTS
==
null'
...
@@ -1016,6 +1020,7 @@
...
@@ -1016,6 +1020,7 @@
-
<<
:
*if-merge-request-labels-pipeline-expedite
-
<<
:
*if-merge-request-labels-pipeline-expedite
when
:
never
when
:
never
-
<<
:
*if-ruby-branch
-
<<
:
*if-ruby-branch
-
<<
:
*if-rails-next-branch
-
<<
:
*if-force-ci
-
<<
:
*if-force-ci
-
<<
:
*if-auto-deploy-branches
-
<<
:
*if-auto-deploy-branches
variables
:
variables
:
...
@@ -1076,6 +1081,7 @@
...
@@ -1076,6 +1081,7 @@
-
<<
:
*if-merge-request-targeting-stable-branch
-
<<
:
*if-merge-request-targeting-stable-branch
changes
:
*setup-test-env-patterns
changes
:
*setup-test-env-patterns
-
<<
:
*if-ruby-branch
-
<<
:
*if-ruby-branch
-
<<
:
*if-rails-next-branch
# We include the job under the matching conditions below, but unlike in .qa:rules:e2e:test-on-gdk we don't need to
# We include the job under the matching conditions below, but unlike in .qa:rules:e2e:test-on-gdk we don't need to
# set OMNIBUS_GITLAB_BUILD_ON_ALL_OS when testing against GDK
# set OMNIBUS_GITLAB_BUILD_ON_ALL_OS when testing against GDK
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
...
@@ -1282,6 +1288,7 @@
...
@@ -1282,6 +1288,7 @@
rules
:
rules
:
-
<<
:
*if-auto-deploy-branches
-
<<
:
*if-auto-deploy-branches
-
<<
:
*if-ruby-branch
-
<<
:
*if-ruby-branch
-
<<
:
*if-rails-next-branch
-
<<
:
*if-force-ci
-
<<
:
*if-force-ci
-
<<
:
*if-merge-request-labels-run-all-e2e
-
<<
:
*if-merge-request-labels-run-all-e2e
-
<<
:
*if-merge-request-labels-run-review-app
-
<<
:
*if-merge-request-labels-run-review-app
...
@@ -1650,6 +1657,7 @@
...
@@ -1650,6 +1657,7 @@
-
<<
:
*if-merge-request-labels-pipeline-expedite
-
<<
:
*if-merge-request-labels-pipeline-expedite
when
:
never
when
:
never
-
*if-ruby-branch
-
*if-ruby-branch
-
*if-rails-next-branch
-
*if-merge-request-labels-run-all-e2e
-
*if-merge-request-labels-run-all-e2e
-
<<
:
*if-merge-request-targeting-stable-branch
-
<<
:
*if-merge-request-targeting-stable-branch
changes
:
*setup-test-env-patterns
changes
:
*setup-test-env-patterns
...
@@ -1703,6 +1711,7 @@
...
@@ -1703,6 +1711,7 @@
-
<<
:
*if-merge-request-targeting-stable-branch
-
<<
:
*if-merge-request-targeting-stable-branch
changes
:
*setup-test-env-patterns
changes
:
*setup-test-env-patterns
-
<<
:
*if-ruby-branch
-
<<
:
*if-ruby-branch
-
<<
:
*if-rails-next-branch
-
<<
:
*if-force-ci
-
<<
:
*if-force-ci
when
:
manual
when
:
manual
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
...
...
此差异已折叠。
点击以展开。
spec/dot_gitlab_ci/ci_configuration_validation/branch_pipeline_spec.rb
+
17
−
0
浏览文件 @
17055c84
...
@@ -58,6 +58,23 @@
...
@@ -58,6 +58,23 @@
end
end
end
end
context
'with gitlab.com gitlab-org/gitlab rails-next branch scheduled pipeline'
do
let
(
:ci_commit_branch
)
{
'rails-next'
}
let
(
:ci_pipeline_source
)
{
'schedule'
}
let
(
:expected_job_name
)
{
'ruby_syntax: [${RUBY_VERSION_DEFAULT}]'
}
before
do
sync_local_files_to_project
(
gitlab_org_gitlab_project
,
user
,
ci_commit_branch
,
files:
ci_glob_with_common_file_globs
)
end
it_behaves_like
'default branch pipeline'
end
context
'with gitlab.com gitlab-org/gitlab ruby-next branch scheduled pipeline'
do
context
'with gitlab.com gitlab-org/gitlab ruby-next branch scheduled pipeline'
do
let
(
:ci_commit_branch
)
{
'ruby-next'
}
let
(
:ci_commit_branch
)
{
'ruby-next'
}
let
(
:ci_pipeline_source
)
{
'schedule'
}
let
(
:ci_pipeline_source
)
{
'schedule'
}
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录