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

Auto drop repository after release #37

Closed
szpak opened this issue Mar 16, 2017 · 1 comment
Closed

Auto drop repository after release #37

szpak opened this issue Mar 16, 2017 · 1 comment
Assignees
Milestone

Comments

@szpak
Copy link
Member

szpak commented Mar 16, 2017

It turned out there is an undocumented parameter "autoDropAfterRelease" which drops staging repository "immediately" after release (in earlier Nexus versions it seemed to happen automatically anyway). It would be good to use it to time when more that one staging repository exists.

As that feature is not documented in the REST API it would be needed to create a functional tests with fake Nexus user to verify it's behavior before going to production.

@szpak szpak added this to the 0.5.4 milestone Mar 16, 2017
strelok1 added a commit to strelok1/gradle-nexus-staging-plugin that referenced this issue Mar 17, 2017
one (note to promote in this case you MUST close and promote together)
- Added feature toggle for "nexus-staging.autoDropAfterRelease" via
project property as per Codearte#37
- Fixed typos and tests
@szpak szpak self-assigned this Mar 18, 2017
@szpak
Copy link
Member Author

szpak commented Mar 18, 2017

I write some exploratory tests to verify that switch and unfortunately Nexus responses with:

400 Bad Request

for unknown reason.

I also noticed that API mentioned in on the mailing list uses stagedRepositoryIds with a list while I use stagedRepositoryId with just one element. I may be using different API. However, there is no documentation for that part of API, so the problem could be caused by anything else........ 😠

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