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
993a1edd
Commit
993a1edd
authored
Mar 07, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename REF to SHA
parent
9c25404a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/ci/build.rb
app/models/ci/build.rb
+1
-1
doc/ci/variables/README.md
doc/ci/variables/README.md
+2
-2
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+1
-1
No files found.
app/models/ci/build.rb
View file @
993a1edd
...
@@ -556,7 +556,7 @@ module Ci
...
@@ -556,7 +556,7 @@ module Ci
{
key:
'CI_JOB_NAME'
,
value:
name
,
public:
true
},
{
key:
'CI_JOB_NAME'
,
value:
name
,
public:
true
},
{
key:
'CI_JOB_STAGE'
,
value:
stage
,
public:
true
},
{
key:
'CI_JOB_STAGE'
,
value:
stage
,
public:
true
},
{
key:
'CI_JOB_TOKEN'
,
value:
token
,
public:
false
},
{
key:
'CI_JOB_TOKEN'
,
value:
token
,
public:
false
},
{
key:
'CI_COMMIT_
REF
'
,
value:
sha
,
public:
true
},
{
key:
'CI_COMMIT_
SHA
'
,
value:
sha
,
public:
true
},
{
key:
'CI_COMMIT_REF_NAME'
,
value:
ref
,
public:
true
},
{
key:
'CI_COMMIT_REF_NAME'
,
value:
ref
,
public:
true
},
{
key:
'CI_COMMIT_REF_SLUG'
,
value:
ref_slug
,
public:
true
},
{
key:
'CI_COMMIT_REF_SLUG'
,
value:
ref_slug
,
public:
true
},
{
key:
'CI_REGISTRY_USER'
,
value:
CI_REGISTRY_USER
,
public:
true
},
{
key:
'CI_REGISTRY_USER'
,
value:
CI_REGISTRY_USER
,
public:
true
},
...
...
doc/ci/variables/README.md
View file @
993a1edd
...
@@ -38,7 +38,7 @@ version of Runner required.
...
@@ -38,7 +38,7 @@ version of Runner required.
|
**CI_BUILD_ID**
| all | all | The unique id of the current job that GitLab CI uses internally. Deprecated, use CI_JOB_ID |
|
**CI_BUILD_ID**
| all | all | The unique id of the current job that GitLab CI uses internally. Deprecated, use CI_JOB_ID |
|
**CI_JOB_ID**
| 9.0 | all | The unique id of the current job that GitLab CI uses internally |
|
**CI_JOB_ID**
| 9.0 | all | The unique id of the current job that GitLab CI uses internally |
|
**CI_BUILD_REF**
| all | all | The commit revision for which project is built. Deprecated, use CI_COMMIT_REF |
|
**CI_BUILD_REF**
| all | all | The commit revision for which project is built. Deprecated, use CI_COMMIT_REF |
|
**CI_COMMIT_
REF
**
| 9.0 | all | The commit revision for which project is built |
|
**CI_COMMIT_
SHA
**
| 9.0 | all | The commit revision for which project is built |
|
**CI_BUILD_TAG**
| all | 0.5 | The commit tag name. Present only when building tags. Deprecated, use CI_COMMIT_TAG |
|
**CI_BUILD_TAG**
| all | 0.5 | The commit tag name. Present only when building tags. Deprecated, use CI_COMMIT_TAG |
|
**CI_COMMIT_TAG**
| 9.0 | 0.5 | The commit tag name. Present only when building tags. |
|
**CI_COMMIT_TAG**
| 9.0 | 0.5 | The commit tag name. Present only when building tags. |
|
**CI_BUILD_NAME**
| all | 0.5 | The name of the job as defined in
`.gitlab-ci.yml`
. Deprecated, use CI_JOB_NAME |
|
**CI_BUILD_NAME**
| all | 0.5 | The name of the job as defined in
`.gitlab-ci.yml`
. Deprecated, use CI_JOB_NAME |
...
@@ -84,7 +84,7 @@ Example values:
...
@@ -84,7 +84,7 @@ Example values:
```
bash
```
bash
export
CI_JOB_ID
=
"50"
export
CI_JOB_ID
=
"50"
export
CI_COMMIT_
REF
=
"1ecfd275763eff1d6b4844ea3168962458c9f27a"
export
CI_COMMIT_
SHA
=
"1ecfd275763eff1d6b4844ea3168962458c9f27a"
export
CI_COMMIT_REF_NAME
=
"master"
export
CI_COMMIT_REF_NAME
=
"master"
export
CI_REPOSITORY
=
"https://gitab-ci-token:abcde-1234ABCD5678ef@example.com/gitlab-org/gitlab-ce.git"
export
CI_REPOSITORY
=
"https://gitab-ci-token:abcde-1234ABCD5678ef@example.com/gitlab-org/gitlab-ce.git"
export
CI_COMMIT_TAG
=
"1.0.0"
export
CI_COMMIT_TAG
=
"1.0.0"
...
...
spec/models/ci/build_spec.rb
View file @
993a1edd
...
@@ -1293,7 +1293,7 @@ describe Ci::Build, :models do
...
@@ -1293,7 +1293,7 @@ describe Ci::Build, :models do
{
key:
'CI_JOB_NAME'
,
value:
'test'
,
public:
true
},
{
key:
'CI_JOB_NAME'
,
value:
'test'
,
public:
true
},
{
key:
'CI_JOB_STAGE'
,
value:
'test'
,
public:
true
},
{
key:
'CI_JOB_STAGE'
,
value:
'test'
,
public:
true
},
{
key:
'CI_JOB_TOKEN'
,
value:
build
.
token
,
public:
false
},
{
key:
'CI_JOB_TOKEN'
,
value:
build
.
token
,
public:
false
},
{
key:
'CI_COMMIT_
REF
'
,
value:
build
.
sha
,
public:
true
},
{
key:
'CI_COMMIT_
SHA
'
,
value:
build
.
sha
,
public:
true
},
{
key:
'CI_COMMIT_REF_NAME'
,
value:
build
.
ref
,
public:
true
},
{
key:
'CI_COMMIT_REF_NAME'
,
value:
build
.
ref
,
public:
true
},
{
key:
'CI_COMMIT_REF_SLUG'
,
value:
build
.
ref_slug
,
public:
true
},
{
key:
'CI_COMMIT_REF_SLUG'
,
value:
build
.
ref_slug
,
public:
true
},
{
key:
'CI_PROJECT_ID'
,
value:
project
.
id
.
to_s
,
public:
true
},
{
key:
'CI_PROJECT_ID'
,
value:
project
.
id
.
to_s
,
public:
true
},
...
...
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