Skip to content
代码片段 群组 项目
提交 17055c84 编辑于 作者: Igor Drozdov's avatar Igor Drozdov
浏览文件

Run scheduled pipeline for rails-next

上级 65242de7
No related branches found
No related tags found
无相关合并请求
...@@ -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
......
...@@ -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
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册