Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
d87c878b
Commit
d87c878b
authored
1 year ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
test package deletion
parent
e03d7881
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1605
Merge 2.8.2.3 work to main
,
!1492
tweak the pipeline
Pipeline
#12546
failed
1 year ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/package-build.template.yml
+4
-2
4 additions, 2 deletions
ci/package-build.template.yml
with
4 additions
and
2 deletions
ci/package-build.template.yml
+
4
−
2
View file @
d87c878b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment