Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
2ac6d806
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2ac6d806
编写于
12月 07, 2017
作者:
A
Achilleas Pipinellis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up docs for dependencies validation
上级
30bc983c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
63 addition
and
16 deletion
+63
-16
doc/administration/job_artifacts.md
doc/administration/job_artifacts.md
+39
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+11
-7
doc/user/project/pipelines/job_artifacts.md
doc/user/project/pipelines/job_artifacts.md
+13
-9
未找到文件。
doc/administration/job_artifacts.md
浏览文件 @
2ac6d806
...
...
@@ -128,6 +128,45 @@ steps below.
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
## Validation for dependencies
> Introduced in GitLab 10.3.
To disable
[
the dependencies validation
](
../ci/yaml/README.md#when-a-dependent-job-will-fail
)
,
you can flip the feature flag from a Rails console.
---
**In Omnibus installations:**
1.
Enter the Rails console:
```sh
sudo gitlab-rails console
```
1.
Flip the switch and disable it:
```ruby
Feature.enable('ci_disable_validates_dependencies')
```
---
**In installations from source:**
1.
Enter the Rails console:
```sh
cd /home/git/gitlab
RAILS_ENV=production sudo -u git -H bundle exec rails console
```
1.
Flip the switch and disable it:
```ruby
Feature.enable('ci_disable_validates_dependencies')
```
## Set the maximum file size of the artifacts
Provided the artifacts are enabled, you can change the maximum file size of the
...
...
doc/ci/yaml/README.md
浏览文件 @
2ac6d806
...
...
@@ -1153,15 +1153,19 @@ deploy:
script
:
make deploy
```
>**Note:**
> Introduced in GitLab 10.3
> This is the user documentation. For the administration guide see
[
administration/job_artifacts
](
../../../administration/job_artifacts.md#validation_for_dependency
)
.
#### When a dependent job will fail
> Introduced in GitLab 10.3.
If a depended job doesn't have artifacts by the following reason, the depending job will fail.
If the artifacts of the job that is set as a dependency have been
[
expired
](
#artifacts-expire_in
)
or
[
erased
](
../../user/project/pipelines/job_artifacts.md#erasing-artifacts
)
, then
the dependent job will fail.
1.
A depended
`artifacts`
has been
[
erased
](
https://docs.gitlab.com/ee/api/jobs.html#erase-a-job
)
.
1.
A depended
`artifacts`
has been
[
expired
](
https://docs.gitlab.com/ee/ci/yaml/#artifacts-expire_in
)
.
NOTE:
**Note:**
You can ask your administrator to
[
flip this switch
](
../../administration/job_artifacts.md#validation-for-dependencies
)
and bring back the old behavior.
### before_script and after_script
...
...
doc/user/project/pipelines/job_artifacts.md
浏览文件 @
2ac6d806
...
...
@@ -44,7 +44,7 @@ the artifacts will be kept forever.
For more examples on artifacts, follow the
[
artifacts reference in
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#artifacts
)
.
## Browsing
job
artifacts
## Browsing artifacts
>**Note:**
With GitLab 9.2, PDFs, images, videos and other formats can be previewed
...
...
@@ -77,7 +77,7 @@ one HTML file that you can view directly online when
---
## Downloading
job
artifacts
## Downloading artifacts
If you need to download the whole archive, there are buttons in various places
inside GitLab that make that possible.
...
...
@@ -102,7 +102,7 @@ inside GitLab that make that possible.
![Job artifacts browser](img/job_artifacts_browser.png)
## Downloading the latest
job
artifacts
## Downloading the latest artifacts
It is possible to download the latest artifacts of a job via a well known URL
so you can use it for scripting purposes.
...
...
@@ -163,14 +163,18 @@ information in the UI.
![
Latest artifacts button
](
img/job_latest_artifacts_browser.png
)
##
Validation for `dependency` keyword
##
Erasing artifacts
To disable [the validation for dependency], you can flip the feature flag from a rails console:
DANGER:
**Warning:**
This is a destructive action that leads to data loss. Use with caution.
```
Feature.enable('ci_disable_validates_dependencies')
```
If you have at least Developer
[
permissions
](
../../permissions.md#gitlab-ci-cd-permissions
)
on the project, you can erase a single job via the UI which will also remove the
artifacts and the job's trace.
1.
Navigate to a job's page.
1.
Click the trash icon at the top right of the job's trace.
1.
Confirm the deletion.
[
expiry date
]:
../../../ci/yaml/README.md#artifacts-expire_in
[
the validation for dependency
]:
../../../ci/yaml/README.md#dependencies
[
ce-14399
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14399
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录