2016-07-19 16:10:34 -04:00
|
|
|
- page_title "CI/CD Pipelines"
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-13 21:22:45 -04:00
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3.profile-settings-sidebar
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
.col-lg-9
|
2016-07-13 21:09:50 -04:00
|
|
|
%h5.prepend-top-0
|
2016-07-14 10:26:10 -04:00
|
|
|
Pipelines
|
2016-10-18 06:53:30 -04:00
|
|
|
= form_for @project, url: namespace_project_pipelines_settings_path(@project.namespace.becomes(Namespace), @project) do |f|
|
2016-07-13 21:22:45 -04:00
|
|
|
%fieldset.builds-feature
|
|
|
|
- unless @repository.gitlab_ci_yml
|
|
|
|
.form-group
|
2016-07-14 10:26:10 -04:00
|
|
|
%p Pipelines need to be configured before you can begin using Continuous Integration.
|
|
|
|
= link_to 'Get started with CI/CD Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
|
2016-07-13 21:22:45 -04:00
|
|
|
.form-group
|
|
|
|
%p Get recent application code using the following command:
|
|
|
|
.radio
|
|
|
|
= f.label :build_allow_git_fetch_false do
|
|
|
|
= f.radio_button :build_allow_git_fetch, 'false'
|
|
|
|
%strong git clone
|
|
|
|
%br
|
|
|
|
%span.descr Slower but makes sure you have a clean dir before every build
|
|
|
|
.radio
|
|
|
|
= f.label :build_allow_git_fetch_true do
|
|
|
|
= f.radio_button :build_allow_git_fetch, 'true'
|
|
|
|
%strong git fetch
|
|
|
|
%br
|
|
|
|
%span.descr Faster
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-13 21:22:45 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :build_timeout_in_minutes, 'Timeout', class: 'label-light'
|
|
|
|
= f.number_field :build_timeout_in_minutes, class: 'form-control', min: '0'
|
|
|
|
%p.help-block per build in minutes
|
|
|
|
.form-group
|
|
|
|
= f.label :build_coverage_regex, "Test coverage parsing", class: 'label-light'
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon /
|
|
|
|
= f.text_field :build_coverage_regex, class: 'form-control', placeholder: '\(\d+.\d+\%\) covered'
|
|
|
|
%span.input-group-addon /
|
|
|
|
%p.help-block
|
|
|
|
We will use this regular expression to find test coverage output in build trace.
|
|
|
|
Leave blank if you want to disable this feature
|
|
|
|
.bs-callout.bs-callout-info
|
|
|
|
%p Below are examples of regex for existing tools:
|
|
|
|
%ul
|
|
|
|
%li
|
|
|
|
Simplecov (Ruby) -
|
|
|
|
%code \(\d+.\d+\%\) covered
|
|
|
|
%li
|
|
|
|
pytest-cov (Python) -
|
|
|
|
%code \d+\%\s*$
|
|
|
|
%li
|
|
|
|
phpunit --coverage-text --colors=never (PHP) -
|
|
|
|
%code ^\s*Lines:\s*\d+.\d+\%
|
|
|
|
%li
|
|
|
|
gcovr (C/C++) -
|
|
|
|
%code ^TOTAL.*\s+(\d+\%)$
|
|
|
|
%li
|
|
|
|
tap --coverage-report=text-summary (Node.js) -
|
|
|
|
%code ^Statements\s*:\s*([^%]+)
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-13 21:22:45 -04:00
|
|
|
.form-group
|
|
|
|
.checkbox
|
|
|
|
= f.label :public_builds do
|
|
|
|
= f.check_box :public_builds
|
2016-10-19 04:47:40 -04:00
|
|
|
%strong Public builds
|
|
|
|
.help-block Allow everyone to access builds traces for Public and Internal projects
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-14 10:26:10 -04:00
|
|
|
.form-group.append-bottom-default
|
2016-07-13 21:22:45 -04:00
|
|
|
= f.label :runners_token, "Runners token", class: 'label-light'
|
|
|
|
= f.text_field :runners_token, class: "form-control", placeholder: 'xEeFCaDAB89'
|
|
|
|
%p.help-block The secure token used to checkout project.
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-13 21:22:45 -04:00
|
|
|
= f.submit 'Save changes', class: "btn btn-save"
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-14 10:26:10 -04:00
|
|
|
%hr
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-07-13 21:22:45 -04:00
|
|
|
.row.prepend-top-default
|
2016-08-12 09:10:02 -04:00
|
|
|
= render partial: 'badge', collection: @badges
|