-
Notifications
You must be signed in to change notification settings - Fork 30
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
Report state=closed, transitioning=false
as "artifact already published"
#155
Comments
In fact, in the error message there is:
Did the error reported in Nexus explain why it happened in your case? In general, there could be some other cases to fail on the Nexus/Sonatype validation, but I agree the duplicated versions/artifacts are probably the most common, so the error message could be improved. |
I couldn't figure out how to find the logs, but definitely the problem was the duplicate version, once I ran the job from the correct branch it worked. The setup had worked unchanged for a long time until this. |
Next time, after the aforementioned failure, go to https://oss.sonatype.org/ , log in, find your staging repository (by name) there and check its status (in the lower panel). There are several validation checks in Sonatype release policy and one of them is most likely failed, with a clear error message. |
…BetterMessage [#155] Mention common reason of "not in desired state" error
I just triggered a deployment which failed
Googling around led me to
Which had the very helpful info
And in fact that turned out to be my problem too! I kicked off deployment on a stale branch 👎
It would be helpful if the error message for
state=closed, transitioning=false
had a hint like "This probably means you have already published artifacts with these names and versions."I'd be happy to submit a PR for this, but I'm a bit afraid the project has died, because #152 is important and easy to fix and is remaining unfixed. Thanks very much for making this, you've got no obligation to keep maintaining it! But if you do get around to fixing #152, I promise to come back and submit a little PR for better error messages if you'd like it :)
The text was updated successfully, but these errors were encountered: