ci tag job artifacts return 404
Summary
from https://docs.gitlab.com/ee/api/jobs.html#download-the-artifacts-archive it should be possible to download artifacts for a tag
curl -s -L -H "PRIVATE-TOKEN:xyz" "https://domain.tld/api/v4/projects/139/jobs/artifacts/some-fancy.git-tag/download?job=some-fancy-job" -o /tmp/artifacts.zip
Branch or tag name in repository. HEAD or SHA references are not supported.
branch names work, but tags do not and return a 404, and yes the job was successful and the archive is downloadable via the frontend
(Summarize the bug encountered concisely)
Steps to reproduce
create a git tag, and try to download the job artifact via the api endpoint
What is the current bug behavior?
404
What is the expected correct behavior?
200 content
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
gitlab-rake gitlab:env:info
System information
System: Ubuntu 16.04
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.6
Bundler Version:1.17.3
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.18.1
Sidekiq Version:5.2.5
Go Version: unknown
GitLab information
Version: 11.10.0-ee
Revision: dfa95630be4
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 9.6.11
URL: https://some.domain.tld
HTTP Clone URL: https://some.domain.tld/some-group/some-project.git
SSH Clone URL: git@some.domain.tld:some-group/some-project.git
Elasticsearch: yes
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: google_oauth2
GitLab Shell
Version: 9.0.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.0.0 ? ... OK (9.0.0)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... yes
Init.d configured correctly? ... skipped
MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
6/1 ... yes
....
8/459 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.1)
Git user has default SSH configuration? ... no
Try fixing it:
mkdir ~/gitlab-check-backup-1556283996
sudo mv /var/opt/gitlab/.ssh/id_rsa_puppet ~/gitlab-check-backup-1556283996
sudo mv /var/opt/gitlab/.ssh/config ~/gitlab-check-backup-1556283996
sudo mv /var/opt/gitlab/.ssh/id_rsa_puppet.pub ~/gitlab-check-backup-1556283996
sudo mv /var/opt/gitlab/.ssh/id_rsa ~/gitlab-check-backup-1556283996
sudo mv /var/opt/gitlab/.ssh/id_rsa.pub ~/gitlab-check-backup-1556283996
For more information see:
doc/ssh/README.md in section "SSH on the GitLab server"
Please fix the error above and rerun the checks.
Active users: ... 50
Elasticsearch version 5.6 - 6.x? ... yes (6.6.1)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Edited by Alexander Weber