Error with needs: from another project
Summary
I have a problem with downloading artifacts from another project. Im using needs section in task, follows documentation https://docs.gitlab.com/ee/ci/yaml/README.html#artifact-downloads-with-needs.
Steps to reproduce
- Open CI Lint
- Paste:
workflow:
rules:
- when: always
stages:
- keycloak
Build Keycloak:
stage: keycloak
image: centos:7
script:
- ls
needs:
- project: anotherprj/keycloak-plugin
job: build
ref: master
artifacts: true
- Error is:
jobs:Build Keycloak:needs:need has an unsupported type
- But seems syntax is ok: https://docs.gitlab.com/ee/ci/yaml/README.html#artifact-downloads-with-needs
Expected correct behavior?
I want to download artifacts from anotherprj/keycloak-plugin to my current job
Relevant logs and/or screenshots
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.6.6p146 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.9 Git Version: 2.26.2 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 13.0.5 Revision: 9097f912ba5 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 11.7 URL: hided HTTP Clone URL: hided SSH Clone URL: hided Using LDAP: yes Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.2.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
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.2.0 ? ... OK (13.2.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: 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: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
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: ... 8/2 ... yes 26/6 ... yes 16/12 ... yes 16/13 ... yes 14/14 ... yes 14/15 ... yes 14/16 ... yes 14/17 ... yes 14/18 ... yes 14/19 ... yes 14/20 ... yes 14/24 ... yes 25/25 ... yes 16/26 ... yes 19/27 ... yes 26/28 ... yes 8/29 ... yes 8/30 ... yes 8/31 ... yes 8/34 ... yes 29/35 ... yes 29/36 ... yes 30/38 ... yes 30/39 ... yes 30/40 ... yes 8/41 ... yes 33/42 ... yes 33/43 ... yes 33/44 ... yes 8/45 ... yes 14/46 ... yes 35/47 ... yes 8/48 ... yes 8/49 ... yes 8/51 ... yes 46/52 ... yes 45/53 ... yes 58/54 ... yes 48/55 ... yes 5/56 ... yes 46/57 ... yes 46/58 ... yes 49/59 ... yes 49/60 ... yes 53/61 ... yes 53/62 ... yes 53/63 ... yes 53/64 ... yes 53/65 ... yes 53/66 ... yes 53/67 ... yes 53/68 ... yes 53/69 ... yes 53/70 ... yes 55/72 ... yes 55/73 ... yes 55/74 ... yes 56/75 ... yes 56/76 ... yes 58/77 ... yes 58/78 ... yes 61/79 ... yes 62/81 ... yes 59/83 ... yes 62/84 ... yes 46/86 ... yes 8/87 ... yes 67/88 ... yes 46/90 ... yes 69/92 ... yes 61/93 ... yes 8/94 ... yes 8/95 ... yes 8/96 ... yes 8/97 ... yes 8/98 ... yes 8/99 ... yes 8/100 ... yes 8/101 ... yes 8/102 ... yes 8/103 ... yes 8/104 ... yes 52/105 ... yes 8/106 ... yes 70/107 ... yes 75/109 ... yes 53/111 ... yes 53/112 ... yes 8/113 ... yes 90/114 ... yes 61/115 ... yes 46/116 ... yes 92/117 ... yes 8/118 ... yes 61/119 ... yes 8/120 ... yes 5/121 ... yes 8/123 ... yes 46/124 ... yes 46/125 ... yes 46/126 ... yes 46/127 ... yes 46/128 ... yes 60/129 ... yes 5/130 ... yes 60/131 ... yes 8/132 ... yes 5/133 ... yes 5/134 ... yes 46/135 ... yes 46/136 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.6) Git version >= 2.22.0 ? ... yes (2.26.2) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1591699946 sudo mv /var/opt/gitlab/.ssh/id_rsa_common ~/gitlab-check-backup-1591699946 sudo mv /var/opt/gitlab/.ssh/id_rsa_common.pub ~/gitlab-check-backup-1591699946 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: ... 47 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... no Try fixing it: Please migrate all projects to hashed storage as legacy storage is deprecated in 13.0 and support will be removed in 14.0. For more information see: doc/administration/repository_storage_types.md
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished