Commit 189a4921 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'remove-feature-flag-cd_skipped_deployment_status' into 'master'

Remove `cd_skipped_deployment_status` feature flag

See merge request gitlab-org/gitlab!51068
parents 4acb76d3 6e3867e1
......@@ -389,15 +389,11 @@ module Ci
end
after_transition any => [:skipped, :canceled] do |build, transition|
if Feature.enabled?(:cd_skipped_deployment_status, build.project)
if transition.to_name == :skipped
build.deployment&.skip
else
build.deployment&.cancel
end
else
build.deployment&.cancel
end
end
end
......
---
title: Add skipped status to deployments
merge_request: 51068
author:
type: added
name: cd_skipped_deployment_status
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46614
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/283884
milestone: '13.6'
type: development
group: group::release
default_enabled: false
......@@ -1183,20 +1183,7 @@ RSpec.describe Ci::Build do
end
context 'when transits to skipped' do
context 'when cd_skipped_deployment_status is disabled' do
before do
stub_feature_flags(cd_skipped_deployment_status: false)
build.skip!
end
it 'transits deployment status to canceled' do
expect(deployment).to be_canceled
end
end
context 'when cd_skipped_deployment_status is enabled' do
before do
stub_feature_flags(cd_skipped_deployment_status: project)
build.skip!
end
......@@ -1204,7 +1191,6 @@ RSpec.describe Ci::Build do
expect(deployment).to be_skipped
end
end
end
context 'when transits to canceled' do
before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment