Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that repository has been really closed #21

Closed
szpak opened this issue May 29, 2016 · 0 comments
Closed

Verify that repository has been really closed #21

szpak opened this issue May 29, 2016 · 0 comments
Assignees
Milestone

Comments

@szpak
Copy link
Member

szpak commented May 29, 2016

Nexus returns 201 Created when accepts request to close a repository:

Sending request: POST /service/local/staging/profiles/xxx/finish HTTP/1.1
Receiving response: HTTP/1.1 201 Created

It is enough for a Gradle tasks to finish successfully. Occasionally that operation can fail (e.g. signature validation when using Sonatype OSS instance). Usually it's not a big issue as closeRepository is followed by promoteRepository, however in CD pipeline with closeRepository -> pushReleaseTag -> promoteRepository steps pushing a release tag to SCM is performed while it should not.

A closeRepository task probably could wait for a close operation to finish.

@szpak szpak added this to the 0.6.0 milestone Oct 3, 2016
szpak added a commit that referenced this issue Mar 20, 2017
Introduced with sharing stagingRepositoryId. Will be fixed by #21.
@szpak szpak self-assigned this Mar 24, 2017
szpak added a commit that referenced this issue Mar 26, 2017
szpak added a commit that referenced this issue Mar 26, 2017
szpak added a commit that referenced this issue Mar 26, 2017
szpak added a commit that referenced this issue Mar 26, 2017
szpak added a commit that referenced this issue Mar 26, 2017
szpak added a commit that referenced this issue Mar 26, 2017
@szpak szpak closed this as completed Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant