2016-07-13 21:22:45 -04:00
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3.profile-settings-sidebar
|
|
|
|
%h4.prepend-top-0
|
2017-01-12 16:36:17 -05:00
|
|
|
CI/CD Pipelines
|
2016-07-13 21:22:45 -04:00
|
|
|
.col-lg-9
|
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-10-17 11:00:49 -04:00
|
|
|
%hr
|
|
|
|
.form-group.append-bottom-default
|
|
|
|
= f.label :runners_token, "Runner token", class: 'label-light'
|
|
|
|
= f.text_field :runners_token, class: "form-control", placeholder: 'xEeFCaDAB89'
|
|
|
|
%p.help-block The secure token used by the Runner to checkout the project
|
|
|
|
|
|
|
|
%hr
|
2016-07-13 21:22:45 -04:00
|
|
|
.form-group
|
2016-10-17 11:00:49 -04:00
|
|
|
%h5.prepend-top-0
|
|
|
|
Git strategy for pipelines
|
|
|
|
%p
|
|
|
|
Choose between <code>clone</code> or <code>fetch</code> to get the recent application code
|
|
|
|
= link_to icon('question-circle'), help_page_path('user/project/pipelines/settings', anchor: 'git-strategy')
|
2016-07-13 21:22:45 -04:00
|
|
|
.radio
|
|
|
|
= f.label :build_allow_git_fetch_false do
|
|
|
|
= f.radio_button :build_allow_git_fetch, 'false'
|
|
|
|
%strong git clone
|
|
|
|
%br
|
2016-10-17 11:00:49 -04:00
|
|
|
%span.descr
|
|
|
|
Slower but makes sure the project workspace is pristine as it clones the repository from scratch for every job
|
2016-07-13 21:22:45 -04:00
|
|
|
.radio
|
|
|
|
= f.label :build_allow_git_fetch_true do
|
|
|
|
= f.radio_button :build_allow_git_fetch, 'true'
|
|
|
|
%strong git fetch
|
|
|
|
%br
|
2016-10-17 11:00:49 -04:00
|
|
|
%span.descr
|
|
|
|
Faster as it re-uses the project workspace (falling back to clone if it doesn't exist)
|
2016-07-13 21:09:50 -04:00
|
|
|
|
2016-10-17 11:00:49 -04:00
|
|
|
%hr
|
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'
|
2016-10-17 11:00:49 -04:00
|
|
|
%p.help-block
|
|
|
|
Per job in minutes. If a job passes this threshold, it will be marked as failed.
|
|
|
|
= link_to icon('question-circle'), help_page_path('user/project/pipelines/settings', anchor: 'timeout')
|
|
|
|
|
|
|
|
%hr
|
|
|
|
.form-group
|
|
|
|
.checkbox
|
|
|
|
= f.label :public_builds do
|
|
|
|
= f.check_box :public_builds
|
|
|
|
%strong Public pipelines
|
|
|
|
.help-block
|
|
|
|
Allow everyone to access pipelines for public and internal projects
|
|
|
|
= link_to icon('question-circle'), help_page_path('user/project/pipelines/settings', anchor: 'visibility-of-pipelines')
|
|
|
|
|
|
|
|
%hr
|
2016-07-13 21:22:45 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :build_coverage_regex, "Test coverage parsing", class: 'label-light'
|
|
|
|
.input-group
|
|
|
|
%span.input-group-addon /
|
2017-02-21 03:45:19 -05:00
|
|
|
= f.text_field :build_coverage_regex, class: 'form-control', placeholder: 'REGULAR_EXPRESSION'
|
2016-07-13 21:22:45 -04:00
|
|
|
%span.input-group-addon /
|
|
|
|
%p.help-block
|
2016-10-17 14:27:15 -04:00
|
|
|
A regular expression that will be used to find the test coverage
|
2017-01-25 11:14:58 -05:00
|
|
|
output in the job trace. Leave blank to disable
|
2016-10-17 11:00:49 -04:00
|
|
|
= link_to icon('question-circle'), help_page_path('user/project/pipelines/settings', anchor: 'test-coverage-parsing')
|
2016-07-13 21:22:45 -04:00
|
|
|
.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
|
2016-10-17 11:00:49 -04:00
|
|
|
tap --coverage-report=text-summary (NodeJS) -
|
2016-07-13 21:22:45 -04:00
|
|
|
%code ^Statements\s*:\s*([^%]+)
|
2016-12-02 17:13:11 -05:00
|
|
|
%li
|
|
|
|
excoveralls (Elixir) -
|
|
|
|
%code \[TOTAL\]\s+(\d+\.\d+)%
|
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
|
2017-01-03 18:57:55 -05:00
|
|
|
= render partial: 'projects/pipelines_settings/badge', collection: @badges
|