简体   繁体   English

Linux上的GitLab运行程序工作目录是什么

[英]What is the GitLab runner working directory on linux

I have one gitlab runner on digital ocean, i can see my build is passed but am not able to figure out where it cloned my repo, on console of the build shows following 我在数字海洋上有一个gitlab运行程序,我可以看到我的构建已通过,但无法弄清楚它在哪里克隆了我的仓库,在构建的控制台上显示如下

Cloning repository... Cloning into **'/builds/.....'**

Where is this builds directory on the system? 这在系统上的构建目录在哪里?

I followed following documentation for setting up gitlab runner 我遵循了以下文档来设置gitlab运行程序

https://about.gitlab.com/2016/04/19/how-to-set-up-gitlab-runner-on-digitalocean/

I checked /home/gitlab-runner directory but it's empty. 我检查了/ home / gitlab-runner目录,但是它是空的。

Given the docs you followed you are using a Docker executor meaning that every job that is executed a given Docker container is started and your job (and thus your clone in the pre-build phase ) and its commands are executed within the Docker container(s). 给定您遵循的文档,您正在使用Docker执行器,这意味着将启动在给定Docker容器中执行的每个作业,并且您的作业(以及因此在构建前阶段的克隆)及其命令将在Docker容器中执行)。

After the job (success or fail) the Gitlab Runner removes the container(s). 作业完成(成功或失败)之后,Gitlab Runner将容器移除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM