2017-09-10 17:25:29 +05:30
- breadcrumb_title "Pipelines"
2018-10-15 14:42:47 +05:30
- page_title = s_("Pipeline|Run Pipeline")
- settings_link = link_to _('CI/CD settings'), project_settings_ci_cd_path(@project)
2016-06-02 11:05:42 +05:30
%h3.page-title
2018-10-15 14:42:47 +05:30
= s_("Pipeline|Run Pipeline")
2016-06-02 11:05:42 +05:30
%hr
2017-09-10 17:25:29 +05:30
= form_for @pipeline, as: :pipeline, url: project_pipelines_path(@project), html: { id: "new-pipeline-form", class: "form-horizontal js-new-pipeline-form js-requires-input" } do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@pipeline)
.form-group
2018-10-15 14:42:47 +05:30
.col-sm-12
= f.label :ref, s_('Pipeline|Create for')
2017-08-17 22:00:37 +05:30
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
= dropdown_tag(params[:ref] || @project.default_branch,
2017-09-10 17:25:29 +05:30
options: { toggle_class: 'js-branch-select wide git-revision-dropdown-toggle',
2018-10-15 14:42:47 +05:30
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: s_("Pipeline|Search branches"),
2017-08-17 22:00:37 +05:30
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
2018-10-15 14:42:47 +05:30
.help-block
= s_("Pipeline|Existing branch name or tag")
.col-sm-12.prepend-top-10.js-ci-variable-list-section
%label
= s_('Pipeline|Variables')
%ul.ci-variable-list
= render 'ci/variables/variable_row', form_field: 'pipeline', only_key_value: true
.help-block
= (s_("Pipeline|Specify variable values to be used in this run. The values specified in %{settings_link} will be used by default.") % {settings_link: settings_link}).html_safe
2016-06-02 11:05:42 +05:30
.form-actions
2018-10-15 14:42:47 +05:30
= f.submit s_('Pipeline|Create pipeline'), class: 'btn btn-success js-variables-save-button', tabindex: 3
= link_to 'Cancel', project_pipelines_path(@project), class: 'btn btn-default pull-right'
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
-# haml-lint:disable InlineJavaScript
2017-09-10 17:25:29 +05:30
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe