Hello! J’ai voulu relancer un test avec Gitlab-CI que j’avais proposé à des collègues, et je plus aucun des jobs qui poussent des artefacts vers les gestionnaires de packages de mon repo ne fonctionnent :
Les seuls logs que j’arrive à obtenir :
$ TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
Uploading distributions to https://framagit.org/api/v4/projects/<project_id>/packages/pypi
dist/foobar-1.0-py3-none-any.whl (22.0 KB)
dist/foobar-1.0.tar.gz (18.9 KB)
username set by command options
password set by command options
username: gitlab-ci
password: <hidden>
Uploading galilee_ldap-1.0-py3-none-any.whl
100%|██████████| 25.1k/25.1k [00:00<00:00, 617kB/s]
Response from https://framagit.org/api/v4/projects/<project_id>/packages/pypi:
404 Not Found
{"message":"404 Not Found"}
HTTPError: 404 Not Found from https://framagit.org/api/v4/projects/<project_id>/packages/pypi
Not Found
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1
Pour vérifier j’ai fait la même chose avec un projet de test :
$ TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
Uploading distributions to https://framagit.org/api/v4/projects/74074/packages/pypi
Uploading foomodule-0.0.1-py3-none-any.whl
100%|██████████| 4.47k/4.47k [00:00<00:00, 99.6kB/s]
Error during upload. Retry with the --verbose option for more details.
HTTPError: 404 Not Found from https://framagit.org/api/v4/projects/74074/packages/pypi
Not Found
En soi rien de très parlant. Dans l’UI je ne vois (plus) les repos de packages, ni les artefacts que j’avais pu créer auparavant.
Dans mon fichier gitlab-ci.yml
j’ai ceci :
deploy-pip-job:
stage: deploy
image: python:latest
script:
- python -V
- pip install twine
- python setup.py sdist bdist_wheel
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
Est-ce que cette fonctionnalité est toujours permise dans Framagit ou est-ce qu’elle a disparu ?
Merci beaucoup !