Project Packages not appearing in Project Package Registry
As part of our CICD, I am publishing a package to the project package registry. However, I cannot see the packages in the Projects’ Package Registry page, but I can see them in the overall groups Registry page.
For example, after publishing to ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${VERSION_ID}/${PROJECT_ARCHIVE}
I don’t see any packages listed in
https://gitlab.com/my-namespace/my-project/-/packages
but I do see the packages in
https://gitlab.com/groups/my-namespace/-/packages
The links to specific packages to reference the originating project, but again, they are not visible within the project, eg:
https://gitlab.com/my-namespace/my-project/-/package_files/82034335/download
Here is the relevant CICD section.
release_job:
stage: release
image: curlimages/curl:latest
needs: ["build"] # the build stage creates the artifact to be deployed below.
rules:
- if: $CI_COMMIT_TAG # only executes when tagged.
script:
- deploy_package.sh # see relevant script information below
Where the deploy_packages script defines VERSION_ID and PROJECT_ARCHIVE and executes the following:
PACKAGE_LINK="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${VERSION_ID}/${PROJECT_ARCHIVE}"
response=$( curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${PROJECT_ARCHIVE} $PACKAGE_LINK )
I followed the steps described here: GitLab Generic Packages Repository | GitLab,
Project Package Registry:
Group Package Registry
I had seen packages in the Project package repository when I first started this effort, but then something happened and now I don’t. At one point I had deleted all of the packages in the project repository, could that have somehow caused packages to stop appearing?
Is there some setting that is hiding this information within the project?