-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for dropping repository #17
Comments
I thought that Nexus does it for you. Nevertheless I have never verified that. Btw, do you need to release a different project using the same staging profile just after the first one? Or there is some other issue that you need it? |
Huh, so it does. I guess it just took way longer than I expected. |
I'm reopening it as I found dropping repository useful in CD pipelines. In addition there is even PR #13 that I plan to work on. |
Do we have an ETA on this enhancement? I have encountered scenarios in which using it would be very helpful and would alleviate some headaches. |
I need it in my CDeliveryBoy, so most likely it will be implemented. However, I have also other things, some duplication would need to be removed by the way and I started a migration to OkHttp some time ago, so I cannot promised any dates :(. |
Btw @Kjens93, why do you need it so much? |
hi @szpak , we also need this enhancement, thanks. |
@chinkong83 Would enhancement proposed in #29 be sufficient for you? If not, could you write what do you need drop repository for? |
Hi, @szpak |
In #13 the requester had a problem with configuration and after my changes the |
ok, but how long of delay time? 10min? |
It should be done "immediately" after promotion (Nexus itself should call drop internally). Do you have very large artifacts there? What was the shortest time you've got that error? |
oh, strange.... Artifact not drop immediately after plugin promote push it, I try twice but always need to drop manually, my artifact file size about 60KB, totally about 30 jar file(include source and javadoc) |
Strange. Is it an open source project available on GitHub? |
@szpak this is our git repo: https://github.com/yahoo/parsec-libraries |
I took a look at your builds. The following case:
usually occurs when the previous release try failed. It is required to drop trashy repository by hand via UI (and here #29 would be useful). There was a proposal to close all repositories, but it can be dangerous and I will try to implement that rather with #29. Another group of problems is:
It usually shouldn't happen, however, I think I have seen it before somewhere and reported #21. It may be related to the fact that you have multiple artifacts and it takes more time on the Nexus side). Could you enable |
Thanks @szpak I paste console full log to gist, please take a look: And I still face the issue: Artifacts not drop after promote it, below is my screenshot: |
Oh, I see staging repositories already drop comyahooparsec-1011, but seems it still keep a period of time before drop. |
In the log I see that retry mechanism behaved properly in What was the time needed to make it closed? 5 minutes? 10? 1 hour? I propose you to reach the Sonatype guys via the mailing list: ossrh-users AT glists.sonatype.com and ask about that giving them that particular case (with a staging repository name). I suspect that time can be needed to do release stuff and just after that a drop operation is performed. Therefore, a try to close the repository which is being promoted would fail (at best). However, I may be wrong and if for unknown reason a drop is not called just after a release operation is performed successfully it may be a good to add an extra drop after the release/promote (nevertheless, it would be much better to have it implemented on the Nexus side if in fact not available right now). |
ok, thanks @szpak 👍 |
@chinkong83 Can you share a ticket in Sonatype Jira you created or a thread on the mailing list? I would like to follow that discussion (about delay between releasing and dropping). |
Hi @szpak We have a similar problem when publishing Grails using this plugin. What happens is we have multi-project build where two of the subprojects use the packaging "pom" instead of the default. These two end up in a separate staging repository and then we get the dreaded.
See https://travis-ci.org/grails/grails-core/builds/193426489#L2361 Is there any reason why these two projects end up in a separate staging repo? Or any other workarounds for this issue? |
@graemerocher It seems to be justified to have two repositories in your case. In
Two ideas to consider:
|
@szpak Thanks for the feedback.
|
@graemerocher @chinkong83 You can upgrade to 0.8.0. I changed the used REST API methods to have support for "autoDropAfterRelease" (#37). The released repository should be gone when Gradle task is finished. |
@szpak great news, thanks! |
Closing as the original request:
is implemented starting with version 0.9.0. |
Please create a new issues if you have a good use case to be able to call |
It would be nice if the plugin could also automatically drop the repo after successful promotion.
The text was updated successfully, but these errors were encountered: