summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge C. Leitao <jorgecarleitao@gmail.com>2018-09-24 18:53:38 +0200
committerJorge C. Leitao <jorgecarleitao@gmail.com>2018-09-24 18:53:38 +0200
commit3290e580b5829d4e1594d4d3b128836525afad3f (patch)
treefc3283cf5bcd4aa70d8545a0a56379228256f34e
parent4c8d2232ca3e4b97a313e9ac4d96dee2b3de9e84 (diff)
downloadgitlab-ce-3290e580b5829d4e1594d4d3b128836525afad3f.tar.gz
Add documentation for stable URLs for Artifacts
This was not documented, and it is a very useful feature for badges, versioned documentation, etc. already exist, it is just not documented. This commit fixes this.
-rw-r--r--doc/user/project/pipelines/job_artifacts.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/user/project/pipelines/job_artifacts.md b/doc/user/project/pipelines/job_artifacts.md
index fc3970e2014..a8b47558c99 100644
--- a/doc/user/project/pipelines/job_artifacts.md
+++ b/doc/user/project/pipelines/job_artifacts.md
@@ -151,6 +151,20 @@ For example:
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/artifacts/master/browse?job=coverage
```
+There is also a URL to specific files, including html files that
+are shown in [GitLab Pages](../../../administration/pages/index.md):
+
+```
+https://example.com/<namespace>/<project>/-/jobs/artifacts/<ref>/file/<path>?job=<job_name>
+```
+
+For example, when a job `coverage` creates the artifact `htmlcov/index.html`,
+you can access it at:
+
+```
+https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/artifacts/master/file/htmlcov/index.html?job=coverage
+```
+
The latest builds are also exposed in the UI in various places. Specifically,
look for the download button in: