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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e26953bc
Commit
e26953bc
authored
Sep 16, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build attributes with slice method
parent
52ebeb5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
CHANGELOG
CHANGELOG
+0
-3
app/services/ci/create_pipeline_builds_service.rb
app/services/ci/create_pipeline_builds_service.rb
+7
-12
No files found.
CHANGELOG
View file @
e26953bc
...
...
@@ -254,9 +254,6 @@ v 8.11.6
- Exclude some pending or inactivated rows in Member scopes.
- Add missing values to linter !6276 (Katarzyna Kobierska Ula Budziszewska)
v 8.11.6 (unreleased)
- Fix an error where we were unable to create a CommitStatus for running state
v 8.11.5
- Optimize branch lookups and force a repository reload for Repository#find_branch. !6087
- Fix member expiration date picker after update. !6184
...
...
app/services/ci/create_pipeline_builds_service.rb
View file @
e26953bc
...
...
@@ -13,24 +13,19 @@ module Ci
private
def
create_build
(
build_attributes
)
build_attributes
=
{
stage_idx:
build_attributes
[
:stage_idx
],
stage:
build_attributes
[
:stage
],
commands:
build_attributes
[
:commands
],
tag_list:
build_attributes
[
:tag_list
],
name:
build_attributes
[
:name
],
when:
build_attributes
[
:when
],
allow_failure:
build_attributes
[
:allow_failure
],
environment:
build_attributes
[
:environment
],
yaml_variables:
build_attributes
[
:yaml_variables
],
options:
build_attributes
[
:options
],
build_attributes
=
build_attributes
.
slice
(
:stage_idx
,
:stage
,
:commands
,
:tag_list
,
:name
,
:when
,
:allow_failure
,
:environment
,
:yaml_variables
,
:options
)
build_attributes
=
build_attributes
.
merge
(
pipeline:
pipeline
,
project:
pipeline
.
project
,
ref:
pipeline
.
ref
,
tag:
pipeline
.
tag
,
user:
current_user
,
trigger_request:
trigger_request
}
)
pipeline
.
builds
.
create
(
build_attributes
)
end
...
...
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