Gitlab runner Container hostname

大兔子大兔子 提交于 2019-12-24 07:08:33

问题


When i start a build in gitlab ci (docker executer) its creating container with name "runner-0fa22293-project-174-concurrent-0-postgres"

In this what does "0fa22293-project-174-concurrent-0" represent ?

What is the naming convention used here?


回答1:


I believe the format is as follows:

runner-<token>-project-<project ID>-concurrent-<concurrent job #>
  • <token> is the first 8 characters of the Runner Token for the CI runner that is running the build.
  • <project ID> is the ID of the project. The is the project ID you'd use during API access too.
  • <concurrent job #> is the number of this job, for this build. GitLab CI lets you run several jobs in a build concurrently, so if you had 3 of 5 jobs running concurrently you would see ...-concurrent-0, ...-concurrent-1, ...-concurrent-2


来源:https://stackoverflow.com/questions/39998868/gitlab-runner-container-hostname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!