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
5791aa86
Commit
5791aa86
authored
Feb 01, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce diff with EE in Ci::PipelineTriggerService
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d7a3f875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
app/services/ci/pipeline_trigger_service.rb
app/services/ci/pipeline_trigger_service.rb
+10
-0
No files found.
app/services/ci/pipeline_trigger_service.rb
View file @
5791aa86
...
@@ -7,6 +7,8 @@ module Ci
...
@@ -7,6 +7,8 @@ module Ci
def
execute
def
execute
if
trigger_from_token
if
trigger_from_token
create_pipeline_from_trigger
(
trigger_from_token
)
create_pipeline_from_trigger
(
trigger_from_token
)
elsif
job_from_token
create_pipeline_from_job
(
job_from_token
)
end
end
end
end
...
@@ -35,6 +37,14 @@ module Ci
...
@@ -35,6 +37,14 @@ module Ci
end
end
end
end
def
create_pipeline_from_job
(
job
)
# overriden in EE
end
def
job_from_token
# overriden in EE
end
def
variables
def
variables
params
[
:variables
].
to_h
.
map
do
|
key
,
value
|
params
[
:variables
].
to_h
.
map
do
|
key
,
value
|
{
key:
key
,
value:
value
}
{
key:
key
,
value:
value
}
...
...
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