summaryrefslogtreecommitdiff
path: root/app/services/test_hooks/project_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/test_hooks/project_service.rb')
-rw-r--r--app/services/test_hooks/project_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/test_hooks/project_service.rb b/app/services/test_hooks/project_service.rb
index 45e0e61e5c4..7e14ddcd017 100644
--- a/app/services/test_hooks/project_service.rb
+++ b/app/services/test_hooks/project_service.rb
@@ -49,7 +49,7 @@ module TestHooks
end
def pipeline_events_data
- pipeline = project.pipelines.first
+ pipeline = project.ci_pipelines.first
throw(:validation_error, 'Ensure the project has CI pipelines.') unless pipeline.present?
Gitlab::DataBuilder::Pipeline.build(pipeline)