summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-03 10:50:57 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-05-03 10:50:57 +0200
commit07d1d8bd6730015e65bd5123f305bf35b4839237 (patch)
tree6ec90ea441e0cd2e15a85cf82f5b520db1f46757
parent58f229af992a9481c9eee3165dc5d14eb1dc7d00 (diff)
downloadgitlab-ce-07d1d8bd6730015e65bd5123f305bf35b4839237.tar.gz
Use **CI_PIPELINE_IID**
-rw-r--r--app/models/ci/pipeline.rb2
-rw-r--r--doc/ci/variables/README.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 0622b9c6918..84c5dae24bb 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -494,7 +494,7 @@ module Ci
def predefined_variables
Gitlab::Ci::Variables::Collection.new
.append(key: 'CI_PIPELINE_ID', value: id.to_s)
- .append(key: 'CI_PIPELINE_IID_PER_PROJECT', value: iid.to_s)
+ .append(key: 'CI_PIPELINE_IID', value: iid.to_s)
.append(key: 'CI_CONFIG_PATH', value: ci_yaml_file_path)
.append(key: 'CI_PIPELINE_SOURCE', value: source.to_s)
end
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index 8eb0fc5ea49..2282cc24beb 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -60,7 +60,7 @@ future GitLab releases.**
| **CI_RUNNER_REVISION** | all | 10.6 | GitLab Runner revision that is executing the current job |
| **CI_RUNNER_EXECUTABLE_ARCH** | all | 10.6 | The OS/architecture of the GitLab Runner executable (note that this is not necessarily the same as the environment of the executor) |
| **CI_PIPELINE_ID** | 8.10 | 0.5 | The unique id of the current pipeline that GitLab CI uses internally |
-| **CI_PIPELINE_IID_PER_PROJECT** | 10.8 | all | The unique id of the current pipeline that GitLab CI uses internally (Incremented per project) |
+| **CI_PIPELINE_IID** | 10.8 | all | The unique id of the current pipeline scoped to project |
| **CI_PIPELINE_TRIGGERED** | all | all | The flag to indicate that job was [triggered] |
| **CI_PIPELINE_SOURCE** | 10.0 | all | Indicates how the pipeline was triggered. Possible options are: `push`, `web`, `trigger`, `schedule`, `api`, and `pipeline`. For pipelines created before GitLab 9.5, this will show as `unknown` |
| **CI_PROJECT_DIR** | all | all | The full path where the repository is cloned and where the job is run |