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
e54d095c
Commit
e54d095c
authored
Jul 06, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in Ci::Pipeline by moving the code to an EE module
parent
61e520e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+2
-4
app/models/ee/ci/pipeline.rb
app/models/ee/ci/pipeline.rb
+12
-0
No files found.
app/models/ci/pipeline.rb
View file @
e54d095c
...
...
@@ -6,6 +6,8 @@ module Ci
include
AfterCommitQueue
include
Presentable
prepend
::
EE
::
Ci
::
Pipeline
belongs_to
:project
belongs_to
:user
belongs_to
:auto_canceled_by
,
class_name:
'Ci::Pipeline'
...
...
@@ -403,11 +405,7 @@ module Ci
def
predefined_variables
[
{
key:
'CI_PIPELINE_ID'
,
value:
id
.
to_s
,
public:
true
},
<<<<<<<
HEAD
{
key:
'CI_PIPELINE_SOURCE'
,
value:
source
.
to_s
,
public:
true
}
=======
{
key:
'CI_CONFIG_PATH'
,
value:
ci_yaml_file_path
,
public:
true
}
>>>>>>>
ce
/
master
]
end
...
...
app/models/ee/ci/pipeline.rb
0 → 100644
View file @
e54d095c
module
EE
module
Ci
module
Pipeline
def
predefined_variables
result
=
super
result
<<
{
key:
'CI_PIPELINE_SOURCE'
,
value:
source
.
to_s
,
public:
true
}
result
end
end
end
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