Skip to content

Don't publish to sonatype twice #7803

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

Closed
wants to merge 1 commit into from

Conversation

anatoliykmetyuk
Copy link
Contributor

This is a quickfix to prevent CI from failing publish phases. Since other phases (such as github release) may depend on sonatype release, the fact that sonatype release fails may also fail these phases needlessly thus complicating the release process. We should do the publish of tasty core together with the other artefacts.

This is a quickfix to prevent CI from failing publish phases. Since other phases (such as github release) may depend on sonatype release, the fact that sonatype release fails may also fail these phases needlessly thus complicating the release process. We should do the publish of tasty core together with the other artefacts.
@bishabosha
Copy link
Member

this is the same as reverting #7724

Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if this is just to fix the publish step crashing then the other PR should be reverted

@@ -107,7 +107,7 @@ steps:
- test_sbt
- test_java11
commands:
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease ;project tasty-core-scala2; publishSigned ;sonatypeBundleRelease"
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the problem is that some artifacts get uploaded twice, we can clean the locally published artifacts in the middle:

Suggested change
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease ;sonatypeBundleClean ;project tasty-core-scala2; publishSigned ;sonatypeBundleRelease"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that'll help. The problem is not the staging area but maven central. By the time sonatypeBundleRelease finished, the staging area is promoted to maven central, and we can't clean up that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you figure something out, please let me know because I think I have been having the same problem. ekrich/sconfig#61

@anatoliykmetyuk
Copy link
Contributor Author

Superseded by #7823

@anatoliykmetyuk anatoliykmetyuk deleted the anatoliykmetyuk-patch-2 branch December 20, 2019 14:36
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

Successfully merging this pull request may close these issues.

4 participants