Reload pipeline to make sure it's updated
This commit is contained in:
parent
a39ff617f8
commit
4f435c6c3a
|
@ -462,7 +462,10 @@ describe Ci::ProcessPipelineService, '#execute', :services do
|
||||||
builds.find_by(name: name).play(user)
|
builds.find_by(name: name).play(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
delegate :manual_actions, to: :pipeline
|
def manual_actions
|
||||||
|
pipeline.reload
|
||||||
|
pipeline.manual_actions
|
||||||
|
end
|
||||||
|
|
||||||
def create_build(name, **opts)
|
def create_build(name, **opts)
|
||||||
create(:ci_build, :created, pipeline: pipeline, name: name, **opts)
|
create(:ci_build, :created, pipeline: pipeline, name: name, **opts)
|
||||||
|
|
Loading…
Reference in New Issue