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
67464972
Commit
67464972
authored
Jan 22, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to pass downstream to bridge factory
parent
531626ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/factories/ci/bridge.rb
spec/factories/ci/bridge.rb
+8
-0
No files found.
spec/factories/ci/bridge.rb
View file @
67464972
...
@@ -10,8 +10,16 @@ FactoryBot.define do
...
@@ -10,8 +10,16 @@ FactoryBot.define do
pipeline
factory: :ci_pipeline
pipeline
factory: :ci_pipeline
transient
{
downstream
nil
}
after
(
:build
)
do
|
bridge
,
evaluator
|
after
(
:build
)
do
|
bridge
,
evaluator
|
bridge
.
project
||=
bridge
.
pipeline
.
project
bridge
.
project
||=
bridge
.
pipeline
.
project
if
evaluator
.
downstream
.
present?
bridge
.
options
=
bridge
.
options
.
to_h
.
merge
(
trigger:
{
project:
evaluator
.
downstream
.
full_path
}
)
end
end
end
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