5

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

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

Where is this builds directory on the system?

I followed following documentation for setting up gitlab runner

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.

1 Answer 1

2

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).

After the job (success or fail) the Gitlab Runner removes the container(s).

Sign up to request clarification or add additional context in comments.

2 Comments

after posting the question i realized the same, i can see the exited container on the runner machine, but i don't think there is a way to start the container again. i am trying to start the exited container with docker start, but it exits immediately. Could you suggest me a way to start the exited container so that i can get inside the container and check the folder?
You could try a docker run -it <container_id> bash

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.