Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
45f66c80
Commit
45f66c80
authored
May 02, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make auto-cancelling pending pipelines on by default
parent
133d2bb4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletion
+32
-1
changelogs/unreleased/enable-auto-cancelling-by-default.yml
changelogs/unreleased/enable-auto-cancelling-by-default.yml
+4
-0
db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb
...65653_make_auto_cancel_pending_pipelines_on_by_default.rb
+13
-0
db/migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb
...502070007_enable_auto_cancel_pending_pipelines_for_all.rb
+14
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
changelogs/unreleased/enable-auto-cancelling-by-default.yml
0 → 100644
View file @
45f66c80
---
title
:
Enable cancelling non-HEAD pending pipelines by default for all projects
merge_request
:
11023
author
:
db/migrate/20170502065653_make_auto_cancel_pending_pipelines_on_by_default.rb
0 → 100644
View file @
45f66c80
class
MakeAutoCancelPendingPipelinesOnByDefault
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
change_column_default
(
:projects
,
:auto_cancel_pending_pipelines
,
1
)
end
def
down
change_column_default
(
:projects
,
:auto_cancel_pending_pipelines
,
0
)
end
end
db/migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb
0 → 100644
View file @
45f66c80
class
EnableAutoCancelPendingPipelinesForAll
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
connection
.
execute
(
'UPDATE projects SET auto_cancel_pending_pipelines = 1'
)
end
def
down
# Nothing we can do!
end
end
db/schema.rb
View file @
45f66c80
...
...
@@ -986,7 +986,7 @@ ActiveRecord::Schema.define(version: 20170508190732) do
t
.
text
"description_html"
t
.
boolean
"only_allow_merge_if_all_discussions_are_resolved"
t
.
boolean
"printing_merge_request_link_enabled"
,
default:
true
,
null:
false
t
.
integer
"auto_cancel_pending_pipelines"
,
default:
0
,
null:
false
t
.
integer
"auto_cancel_pending_pipelines"
,
default:
1
,
null:
false
t
.
string
"import_jid"
t
.
integer
"cached_markdown_version"
t
.
datetime
"last_repository_updated_at"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment