diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-05 20:58:08 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-05 20:58:08 +0100 |
commit | 140b51ce980bc519f3478bf4321dfd4a35d6bd3c (patch) | |
tree | 79b212a3e5e05b9e87acdd2ef04c3beaf5236d78 /app | |
parent | ab972295bc0ec6db90ae451904a867788d66f49d (diff) | |
download | gitlab-ce-140b51ce980bc519f3478bf4321dfd4a35d6bd3c.tar.gz |
Introduce tests for pipeline triggers
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/triggers_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/triggers_helper.rb b/app/helpers/triggers_helper.rb index b0135ea2e95..a48d4475e97 100644 --- a/app/helpers/triggers_helper.rb +++ b/app/helpers/triggers_helper.rb @@ -1,9 +1,9 @@ module TriggersHelper def builds_trigger_url(project_id, ref: nil) if ref.nil? - "#{Settings.gitlab.url}/api/v3/projects/#{project_id}/trigger/builds" + "#{Settings.gitlab.url}/api/v4/projects/#{project_id}/trigger/pipeline" else - "#{Settings.gitlab.url}/api/v3/projects/#{project_id}/ref/#{ref}/trigger/builds" + "#{Settings.gitlab.url}/api/v4/projects/#{project_id}/ref/#{ref}/trigger/pipeline" end end |