Commit 34de8eea authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'poffey21-master-patch-46918' into 'master'

Provide details regarding builds directory

See merge request gitlab-org/gitlab!63331
parents c9a19a21 5f90ea0a
...@@ -128,6 +128,10 @@ For example, the following two definitions are equal: ...@@ -128,6 +128,10 @@ For example, the following two definitions are equal:
- name: redis:latest - name: redis:latest
``` ```
## Where scripts are executed
When a CI job runs in a Docker container, the `before_script`, `script`, and `after_script` commands run in the `/builds/<project-path>/` directory. Your image may have a different default `WORKDIR` defined. To move to your `WORKDIR`, save the `WORKDIR` as an environment variable so you can reference it in the container during the job's runtime.
### Available settings for `image` ### Available settings for `image`
> Introduced in GitLab and GitLab Runner 9.4. > Introduced in GitLab and GitLab Runner 9.4.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment