Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
be18faee
Commit
be18faee
authored
Jul 13, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align pipelines settings to match other settings pages
parent
54340809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
83 deletions
+93
-83
app/views/projects/builds/settings.html.haml
app/views/projects/builds/settings.html.haml
+93
-83
No files found.
app/views/projects/builds/settings.html.haml
View file @
be18faee
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
authenticity_token:
true
do
|
f
|
-
page_title
"Pipelines Settings"
%fieldset
.builds-feature
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
=
page_title
.col-lg-9
%h5
.prepend-top-0
%h5
.prepend-top-0
Builds
Builds
-
unless
@repository
.
gitlab_ci_yml
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
authenticity_token:
true
do
|
f
|
.form-group
%fieldset
.builds-feature
%p
Builds need to be configured before you can begin using Continuous Integration.
-
unless
@repository
.
gitlab_ci_yml
=
link_to
'Get started with Builds'
,
help_page_path
(
'ci/quick_start/README'
),
class:
'btn btn-info'
.form-group
.form-group
%p
Builds need to be configured before you can begin using Continuous Integration.
%p
Get recent application code using the following command:
=
link_to
'Get started with Builds'
,
help_page_path
(
'ci/quick_start/README'
),
class:
'btn btn-info'
.radio
.form-group
=
f
.
label
:build_allow_git_fetch_false
do
%p
Get recent application code using the following command:
=
f
.
radio_button
:build_allow_git_fetch
,
'false'
.radio
%strong
git clone
=
f
.
label
:build_allow_git_fetch_false
do
%br
=
f
.
radio_button
:build_allow_git_fetch
,
'false'
%span
.descr
Slower but makes sure you have a clean dir before every build
%strong
git clone
.radio
%br
=
f
.
label
:build_allow_git_fetch_true
do
%span
.descr
Slower but makes sure you have a clean dir before every build
=
f
.
radio_button
:build_allow_git_fetch
,
'true'
.radio
%strong
git fetch
=
f
.
label
:build_allow_git_fetch_true
do
%br
=
f
.
radio_button
:build_allow_git_fetch
,
'true'
%span
.descr
Faster
%strong
git fetch
%br
%span
.descr
Faster
.form-group
.form-group
=
f
.
label
:build_timeout_in_minutes
,
'Timeout'
,
class:
'label-light'
=
f
.
label
:build_timeout_in_minutes
,
'Timeout'
,
class:
'label-light'
=
f
.
number_field
:build_timeout_in_minutes
,
class:
'form-control'
,
min:
'0'
=
f
.
number_field
:build_timeout_in_minutes
,
class:
'form-control'
,
min:
'0'
%p
.help-block
per build in minutes
%p
.help-block
per build in minutes
.form-group
.form-group
=
f
.
label
:build_coverage_regex
,
"Test coverage parsing"
,
class:
'label-light'
=
f
.
label
:build_coverage_regex
,
"Test coverage parsing"
,
class:
'label-light'
.input-group
.input-group
%span
.input-group-addon
/
%span
.input-group-addon
/
=
f
.
text_field
:build_coverage_regex
,
class:
'form-control'
,
placeholder:
'\(\d+.\d+\%\) covered'
=
f
.
text_field
:build_coverage_regex
,
class:
'form-control'
,
placeholder:
'\(\d+.\d+\%\) covered'
%span
.input-group-addon
/
%span
.input-group-addon
/
%p
.help-block
%p
.help-block
We will use this regular expression to find test coverage output in build trace.
We will use this regular expression to find test coverage output in build trace.
Leave blank if you want to disable this feature
Leave blank if you want to disable this feature
.bs-callout.bs-callout-info
.bs-callout.bs-callout-info
%p
Below are examples of regex for existing tools:
%p
Below are examples of regex for existing tools:
%ul
%ul
%li
%li
Simplecov (Ruby) -
Simplecov (Ruby) -
%code
\(\d+.\d+\%\) covered
%code
\(\d+.\d+\%\) covered
%li
%li
pytest-cov (Python) -
pytest-cov (Python) -
%code
\d+\%\s*$
%code
\d+\%\s*$
%li
%li
phpunit --coverage-text --colors=never (PHP) -
phpunit --coverage-text --colors=never (PHP) -
%code
^\s*Lines:\s*\d+.\d+\%
%code
^\s*Lines:\s*\d+.\d+\%
%li
%li
gcovr (C/C++) -
gcovr (C/C++) -
%code
^TOTAL.*\s+(\d+\%)$
%code
^TOTAL.*\s+(\d+\%)$
%li
%li
tap --coverage-report=text-summary (Node.js) -
tap --coverage-report=text-summary (Node.js) -
%code
^Statements\s*:\s*([^%]+)
%code
^Statements\s*:\s*([^%]+)
.form-group
.form-group
.checkbox
.checkbox
=
f
.
label
:public_builds
do
=
f
.
label
:public_builds
do
=
f
.
check_box
:public_builds
=
f
.
check_box
:public_builds
%strong
Public builds
%strong
Public builds
.help-block
Allow everyone to access builds for Public and Internal projects
.help-block
Allow everyone to access builds for Public and Internal projects
.form-group.append-bottom-0
.form-group.append-bottom-0
=
f
.
label
:runners_token
,
"Runners token"
,
class:
'label-light'
=
f
.
label
:runners_token
,
"Runners token"
,
class:
'label-light'
=
f
.
text_field
:runners_token
,
class:
"form-control"
,
placeholder:
'xEeFCaDAB89'
=
f
.
text_field
:runners_token
,
class:
"form-control"
,
placeholder:
'xEeFCaDAB89'
%p
.help-block
The secure token used to checkout project.
%p
.help-block
The secure token used to checkout project.
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
-
badges_path
=
namespace_project_badges_path
(
@project
.
namespace
,
@project
)
-
badges_path
=
namespace_project_badges_path
(
@project
.
namespace
,
@project
)
.row.prepend-top-default
.prepend-top-10
.col-lg-3.profile-settings-sidebar
.panel.panel-default
%h4
.prepend-top-0
.panel-heading
Builds Badge
%b
Builds badge
·
.col-lg-9
=
@build_badge
.
to_html
.prepend-top-10
.pull-right
.panel.panel-default
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
.panel-heading
.panel-body
%b
Builds badge
·
.row
=
@build_badge
.
to_html
.col-md-2.text-center
.pull-right
Markdown
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
.col-md-10.code.js-syntax-highlight
.panel-body
=
highlight
(
'.md'
,
@build_badge
.
to_markdown
)
.row
.row
.col-md-2.text-center
%hr
Markdown
.row
.col-md-10.code.js-syntax-highlight
.col-md-2.text-center
=
highlight
(
'.md'
,
@build_badge
.
to_markdown
)
HTML
.row
.col-md-10.code.js-syntax-highlight
%hr
=
highlight
(
'.html'
,
@build_badge
.
to_html
)
.row
.col-md-2.text-center
HTML
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.html'
,
@build_badge
.
to_html
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment