什么是Gitlab CI工件的良好字符串键?

问题描述 投票:0回答:1

我必须使用已禁用工件上传的Gitlab 11实例,这超出了我的控制范围。我有可用的Artifactory服务器,想用它代替工件存储。

我的问题是:

Gitlab Version 11 environment variables组合形成唯一标识gitlab工件的键。

理想情况下,字符串应该容易地组成一个字符串。

下面是一个候选人,但是我不确定这是理想的(请问有趣的布局,所以没有表AFAIK):

| Variable        | GitLab | Runner | Description                                           |
|-----------------|--------|--------|-------------------------------------------------------|
| CI_SERVER_NAME  | all    | all    | The name of CI server that is used to coordinate jobs |
| CI_PROJECT_PATH | 8.10   | 0.5    | The namespace with project name                       |
| CI_JOB_NAME     | 9.0    | 0.5    | The name of the job as defined in .gitlab-ci.yml      |
| CI_COMMIT_SHA   | 9.0    | all    | The commit revision for which project is built        |
gitlab primary-key gitlab-ci artifactory
1个回答
0
投票

如何改用UUID?这肯定可以唯一地识别工件。

请参见How to create GUID / UUID?

© www.soinside.com 2019 - 2024. All rights reserved.