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
Léo-Paul Géneau
gitlab-ce
Commits
49e51753
Commit
49e51753
authored
Mar 13, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor artifacts:name
parent
19d1455a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+12
-11
No files found.
doc/ci/yaml/README.md
View file @
49e51753
...
@@ -461,19 +461,16 @@ be available for download in the GitLab UI.
...
@@ -461,19 +461,16 @@ be available for download in the GitLab UI.
>**Note:**
>**Note:**
Introduced in GitLab 8.6 and GitLab Runner v1.1.0.
Introduced in GitLab 8.6 and GitLab Runner v1.1.0.
The
`name`
directive allows you to define the name of created artifacts archive.
The
`name`
directive allows you to define the name of the created artifacts
archive. That way, you can have a unique name of every archive which could be
Currently the
`artifacts`
is used.
useful when you'd like to download the archive from GitLab. The
`artifacts:name`
It may be useful when you will want to download the archive from GitLab.
variable can make use of any of the
[
predefined variables
](
../variables/README.md
)
.
You could possible have the unique name of every archive.
The
`artifacts:name`
variable can use any of the
[
predefined variables
](
../variables/README.md
)
.
---
---
**Example configurations**
**Example configurations**
To create a
archive with a name of
current build:
To create a
n archive with a name of the
current build:
```
yaml
```
yaml
job
:
job
:
...
@@ -481,7 +478,8 @@ job:
...
@@ -481,7 +478,8 @@ job:
name
:
"
$CI_BUILD_NAME"
name
:
"
$CI_BUILD_NAME"
```
```
To create a archive with a name of current branch or tag:
To create an archive with a name of the current branch or tag including only
the files that are untracked by Git:
```
yaml
```
yaml
job
:
job
:
...
@@ -490,7 +488,8 @@ job:
...
@@ -490,7 +488,8 @@ job:
untracked
:
true
untracked
:
true
```
```
To create a archive with a name of current branch or tag:
To create an archive with a name of the current build and the current branch or
tag including only the files that are untracked by Git:
```
yaml
```
yaml
job
:
job
:
...
@@ -499,7 +498,7 @@ job:
...
@@ -499,7 +498,7 @@ job:
untracked
:
true
untracked
:
true
```
```
To create a
archive with a name of stage
and branch name:
To create a
n archive with a name of the current
[
stage
](
#stages
)
and branch name:
```
yaml
```
yaml
job
:
job
:
...
@@ -508,6 +507,8 @@ job:
...
@@ -508,6 +507,8 @@ job:
untracked
:
true
untracked
:
true
```
```
---
If you use
**Windows Batch**
to run your shell scripts you need to replace
If you use
**Windows Batch**
to run your shell scripts you need to replace
`$`
with
`%`
:
`$`
with
`%`
:
...
...
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