diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-29 10:37:31 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-29 10:37:31 +0200 |
commit | 2a0d4e7200d3e985552d887b9c9e14db073c70ab (patch) | |
tree | f02c53ad90cff5e731d527399942544e8b8a84f3 /app/views/ci | |
parent | e1b7fcedfb24353c857a160cd0c981f02fb2542a (diff) | |
download | gitlab-ce-2a0d4e7200d3e985552d887b9c9e14db073c70ab.tar.gz |
Move CI triggers page to project settings areamove-triggers-page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/triggers/_trigger.html.haml | 14 | ||||
-rw-r--r-- | app/views/ci/triggers/index.html.haml | 67 |
2 files changed, 0 insertions, 81 deletions
diff --git a/app/views/ci/triggers/_trigger.html.haml b/app/views/ci/triggers/_trigger.html.haml deleted file mode 100644 index addfbfcb0d4..00000000000 --- a/app/views/ci/triggers/_trigger.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -%tr - %td - .clearfix - %span.monospace= trigger.token - - %td - - if trigger.last_trigger_request - #{time_ago_in_words(trigger.last_trigger_request.created_at)} ago - - else - Never - - %td - .pull-right - = link_to 'Revoke', ci_project_trigger_path(@project, trigger), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-danger btn-sm btn-grouped" diff --git a/app/views/ci/triggers/index.html.haml b/app/views/ci/triggers/index.html.haml deleted file mode 100644 index 44374a1a4d5..00000000000 --- a/app/views/ci/triggers/index.html.haml +++ /dev/null @@ -1,67 +0,0 @@ -%h3.page-title - Triggers - -%p.light - Triggers can be used to force a rebuild of a specific branch or tag with an API call. - -%hr.clearfix - --if @triggers.any? - %table.table - %thead - %th Token - %th Last used - %th - = render @triggers -- else - %h4 No triggers - -= form_for [:ci, @project, @trigger], html: { class: 'form-horizontal' } do |f| - .clearfix - = f.submit "Add Trigger", class: 'btn btn-success pull-right' - -%hr.clearfix - --if @triggers.any? - %h3 - Use CURL - - %p.light - Copy the token above and set your branch or tag name. This is the reference that will be rebuild. - - - %pre - :plain - curl -X POST \ - -F token=TOKEN \ - #{ci_build_trigger_url(@project.id, 'REF_NAME')} - %h3 - Use .gitlab-ci.yml - - %p.light - Copy the snippet to - %i .gitlab-ci.yml - of dependent project. - At the end of your build it will trigger this project to rebuilt. - - %pre - :plain - trigger: - type: deploy - script: - - "curl -X POST -F token=TOKEN #{ci_build_trigger_url(@project.id, 'REF_NAME')}" - %h3 - Pass build variables - - %p.light - Add - %strong variables[VARIABLE]=VALUE - to API request. - The value of variable could then be used to distinguish triggered build from normal one. - - %pre - :plain - curl -X POST \ - -F token=TOKEN \ - -F "variables[RUN_NIGHTLY_BUILD]=true" \ - #{ci_build_trigger_url(@project.id, 'REF_NAME')} |