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

test package deletion

parent ccdfe26f
No related branches found
No related tags found
2 merge requests!1605Merge 2.8.2.3 work to main,!1492tweak the pipeline
Pipeline #12549 passed
......@@ -21,7 +21,7 @@
- >-
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}
| jq -r --arg RELEASE_VERSION "$RELEASE_VERSION" '.[] | {"name": .name, "version": .version, "url":._links.delete_api_path}
| select(.version==$RELEASE_VERSION) | .url')
- echo $DELETE_URL_RESPONSE
# if a conflicting version is present in pypi registry, remove it
......
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