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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
468e8b55
Commit
468e8b55
authored
Jun 28, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc, test, and form
parent
6e0cf082
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
90 deletions
+13
-90
app/views/projects/pipelines_settings/_show.html.haml
app/views/projects/pipelines_settings/_show.html.haml
+8
-0
app/views/projects/pipelines_settings/show.html.haml
app/views/projects/pipelines_settings/show.html.haml
+0
-87
doc/user/project/pipelines/settings.md
doc/user/project/pipelines/settings.md
+4
-3
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+1
-0
No files found.
app/views/projects/pipelines_settings/_show.html.haml
View file @
468e8b55
...
...
@@ -45,6 +45,14 @@
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'
),
target:
'_blank'
%hr
.form-group
=
f
.
label
:ci_config_file
,
'Custom CI Config File'
,
class:
'label-light'
=
f
.
text_field
:ci_config_file
,
class:
'form-control'
,
placeholder:
'.gitlab-ci.yml'
%p
.help-block
Optionally specify the location of your CI config file, e.g. my/path or my/path/.my-config.yml.
Default is to use '.gitlab-ci.yml' in the repository root.
%hr
.form-group
.checkbox
...
...
app/views/projects/pipelines_settings/show.html.haml
deleted
100644 → 0
View file @
6e0cf082
-
page_title
"CI/CD Pipelines"
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
=
page_title
.col-lg-9
%h5
.prepend-top-0
Pipelines
=
form_for
@project
,
url:
namespace_project_pipelines_settings_path
(
@project
.
namespace
.
becomes
(
Namespace
),
@project
),
remote:
true
,
authenticity_token:
true
do
|
f
|
%fieldset
.builds-feature
-
unless
@repository
.
gitlab_ci_yml
.form-group
%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'
.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
.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
:ci_config_file
,
'Custom CI Config File'
,
class:
'label-light'
=
f
.
text_field
:ci_config_file
,
class:
'form-control'
,
placeholder:
'.gitlab-ci.yml'
%p
.help-block
Optionally specify the location of your CI config file E.g. my/path or my/path/.my-config.yml.
Default is to use '.gitlab-ci.yml' in the repository root.
.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*([^%]+)
.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
.form-group.append-bottom-default
=
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.
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
%hr
.row.prepend-top-default
=
render
partial:
'badge'
,
collection:
@badges
doc/user/project/pipelines/settings.md
View file @
468e8b55
...
...
@@ -29,10 +29,10 @@ if the job surpasses the threshold, it is marked as failed.
## Custom CI Config File
> - [Introduced][ce-1
5041] in GitLab 8.13
.
> - [Introduced][ce-1
2509] in GitLab 9.4
.
By default we look for the
`.gitlab-ci.yml`
file in the projects root
directory. If you require a different location
**within**
the repository
By default we look for the
`.gitlab-ci.yml`
file in the project
'
s root
directory. If you require a different location
**within**
the repository
,
you can set a custom filepath that will be used to lookup the config file,
this filepath should be
**relative**
to the root.
...
...
@@ -131,3 +131,4 @@ into your `README.md`:
[
var
]:
../../../ci/yaml/README.md#git-strategy
[
coverage report
]:
#test-coverage-parsing
[
ce-9362
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9362
[
ce-12509
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12509
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
468e8b55
...
...
@@ -383,6 +383,7 @@ Project:
-
printing_merge_request_link_enabled
-
build_allow_git_fetch
-
last_repository_updated_at
-
ci_config_file
Author
:
-
name
ProjectFeature
:
...
...
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