url to download the artifact of the latest build does not download the latest one.
Summary
I want to use the url to download an artifact from the latest build, but it does not download the latest one. Downloading through the Pipelines UI is ok.
My url is
https://gitlab.com/vindarel/cl-torrents/-/jobs/artifacts/master/raw/torrents?job=build
i.e., I ask to download the file "torrents" of the latest "build" job.
For reference, the doc shows an example url to download the file "coverage/index.html" from the latest "coverage" job:
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/artifacts/master/raw/coverage/index.html?job=coverage
Steps to reproduce
Build an artifact in .gitlab-ci.yml
:
build:
script:
- make build
artifacts:
paths:
- torrents
and use the url given above.
Example Project
my project: https://gitlab.com/vindarel/cl-torrents (url on the readme)
Pipelines: https://gitlab.com/vindarel/cl-torrents/pipelines
If you happen to download the file: the right one with option -h
will show its version and a -v
and a -i
option:
$ ./torrents
CL-torrents version 0.6.1. Usage:
Available options:
-h, --help print this help text
-v, --version print the version
-n, --nb ARG maximum number of results to print.
-i, --info print more information (like the torrent's url)
-m, --magnet ARG get the magnet link of the given search result.
The bad one, which is prior to 0.5, doesn't have that:
CL-torrents. Usage:
Available options:
-h, --help print this help text
-n, --nb ARG maximum number of results to print.
-m, --magnet ARG get the magnet link of the given search result.
Output of checks
This bug happens on GitLab.com.
ps: tried for feedback on irc/gitter/google group.