Skip to content
Snippets Groups Projects
Commit d87c878b authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

test package deletion

parent e03d7881
No related branches found
No related tags found
2 merge requests!1605Merge 2.8.2.3 work to main,!1492tweak the pipeline
Pipeline #12546 failed
......@@ -19,11 +19,13 @@
- PACKAGE_NAME=$(basename $PWD)
- echo $PACKAGE_NAME version $RELEASE_VERSION
- >-
RESPONSE=$(curl --header "PRIVATE-TOKEN: ${API_TOKEN}"
DELETE_URL_RESPONSE=$(curl --header "PRIVATE-TOKEN: ${API_TOKEN}"
"https://gitlab.nrao.edu/api/v4/projects/$CI_PROJECT_ID/packages?package_type=pypi&package_name=$PACKAGE_NAME"
| jq --arg RELEASE_VERSION "$RELEASE_VERSION" '.[] | {"name": .name, "version": .version, "url":._links.delete_api_path}
| select(.version==$RELEASE_VERSION) | .url')
- echo $RESPONSE
- echo $DELETE_URL_RESPONSE
# if a conflicting version is present in pypi registry, remove it
- if [[ -n "$DELETE_URL_RESPONSE" ]]; then $(curl --request DELETE --header "PRIVATE-TOKEN: ${API_TOKEN}" $DELETE_URL_RESPONSE); fi
# Install build, poetry and pytest
- pip install poetry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment