Made Ci::Builds to have same ref as Ci::Pipeline in dev fixtures
This commit is contained in:
parent
ada8b026ef
commit
0a5427d7c2
2 changed files with 5 additions and 1 deletions
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Ci::Builds have same ref as Ci::Pipeline in dev fixtures
|
||||||
|
merge_request:
|
||||||
|
author: twonegatives
|
|
@ -115,7 +115,7 @@ class Gitlab::Seeder::Pipelines
|
||||||
|
|
||||||
def job_attributes(pipeline, opts)
|
def job_attributes(pipeline, opts)
|
||||||
{ name: 'test build', stage: 'test', stage_idx: stage_index(opts[:stage]),
|
{ name: 'test build', stage: 'test', stage_idx: stage_index(opts[:stage]),
|
||||||
ref: 'master', tag: false, user: build_user, project: @project, pipeline: pipeline,
|
ref: pipeline.ref, tag: false, user: build_user, project: @project, pipeline: pipeline,
|
||||||
created_at: Time.now, updated_at: Time.now
|
created_at: Time.now, updated_at: Time.now
|
||||||
}.merge(opts)
|
}.merge(opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue