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

closeAndReleaseRepository passes but the staging repository exists #147

Closed
abhinayagarwal opened this issue Dec 31, 2019 · 5 comments
Closed

Comments

@abhinayagarwal
Copy link

We use nexus-publish + nexus-staging to publish and release to Maven Central.

The Gradle command used for the same is as follows and it doesn't have a --info flag:

./gradlew publish closeAndReleaseRepository

We recently tried to release via Travis. Both closeRepository and releaseRepository tasks were successful. However, while executing releaseRepository, a warning was shown.

> Task :closeRepository

Requested operation was executed successfully in attempt 11 (maximum allowed 21)

> Task :releaseRepository

GET request failed. 404: Not Found, body: [errors:[[id:*, msg:No such repository: comgluonhq-1129]]]

Requested operation was executed successfully in attempt 7 (maximum allowed 21)

Irrespective of the tasks being successful, the repository was neither closed nor published. Also, what is the reason behind the GET request failed warning?

@szpak
Copy link
Member

szpak commented Jan 2, 2020

Irrespective of the tasks being successful, the repository was neither closed nor published.

That's extremely strange. Are you sure that the repository that stayed was comgluonhq-1129 (not any other)?

Also, what is the reason behind the GET request failed warning?

It's a side effect of the way the plugins checks if the repository was released (so effectively removed from Nexus). You can read more about that here.

Btw, I propose to add -i for the deployment tasks to make tracking potential issues easier.

@abhinayagarwal
Copy link
Author

I will add the -i to the deployment task and come back with more information once we do the next release.

@abhinayagarwal
Copy link
Author

abhinayagarwal commented Jan 7, 2020

Seems like this time both close and release were successful. Although, both these tasks were called before the actual closeAndReleaseRepository could be called.

Does publish automatically call these tasks?

@szpak
Copy link
Member

szpak commented Jan 7, 2020

Although, both these tasks were called before the actual closeAndReleaseRepository could be called.

It's ok. closeAndReleaseRepository is an umbrella task which depends on both closeRepository and releaseRepository. Just to make the call easier.

Does publish automatically call these tasks?

By default gradle-nexus-staging-plugin's tasks are publish independent. Can be called to close/release also previously created staging repository.

@abhinayagarwal
Copy link
Author

It's ok. closeAndReleaseRepository is an umbrella task which depends on both closeRepository and releaseRepository

Things are now clear to me. Thank you for all the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants