summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-09 15:16:31 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-05-09 15:16:31 +0000
commita3607aa43971d03b718e070db271104553eca549 (patch)
tree5c08f9b44e263c2878cba496e088b04a93816788 /features
parenta325a50a0369b036164a52b5449dc696ca75fdd9 (diff)
parent2ccee7161a58ea04c66b216ccb57e522850f5d95 (diff)
downloadgitlab-ce-a3607aa43971d03b718e070db271104553eca549.tar.gz
Merge branch 'issue_27168_2' into 'master'
Preloads head pipeline for each merge request Closes #27168 See merge request !10064
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/merge_requests.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index 573be44c695..d15417fa173 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -557,6 +557,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
project = merge_request.source_project
project.enable_ci
pipeline = create :ci_pipeline, project: project, sha: merge_request.diff_head_sha, ref: merge_request.source_branch
+ merge_request.update(head_pipeline: pipeline)
create :ci_build, pipeline: pipeline
end