-
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
Multiple staging profiles created on upload by Gradle in Travis causes closeRepository task to fail #76
Comments
It's a big problem, I'm also not able to automatically release my project using Travis. In fact, it happens in the upload phase (multiple staging repositories are created) and Unfortunately Travis is unlikely to fix it on their side. There is an open issue for Gradle. You can comment there, as it seems to be a good place to fix it (it would be possible for gradle-nexus-staging-plugin to track one particular staging repository not to check number of them in a given state). Update. I changed the title to more accurate. |
For desperate hearts, there is a workaround available by @jakubhava. |
Internal implementation in the Exploratory E2E tests to verify it with Travis.
To do not fail on GNSP close via HTTPS. The push url can be rewritten locally to use SSH.
The explicitly created repository can be used with uploadArchive tasks. Created for internal use (no support) with Continuous Delivery Boy. It's recommended to use "maven-publish" plugin with "nexus-publish-plugin" to achieve the same in supported way.
It works fine with nexus-publish-plugin. I updated the project FAQ to address it. A copy-paste for people hitting that issue. To cut a long story short:
For releasing from Travis (and in general) it's recommended to add nexus-publish-plugin to your project and use its However, there is one caveat. |
Fixes bug described in github.com/Codearte/gradle-nexus-staging-plugin/issues/76.
Fixes bug described in github.com/Codearte/gradle-nexus-staging-plugin/issues/76.
Hi,
we are having issues to use this plugin when VM (travis) changes public IP during the release.
From https://help.sonatype.com/repomanager2/staging-releases/managing-staging-repositories
This jira https://issues.sonatype.org/browse/OSSRH-19485?focusedCommentId=340094&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-340094 advices to use profile id.
We have added
stagingProfileId
to our gradle config however the build still fails e.g.https://travis-ci.org/jaegertracing/jaeger-client-java/jobs/441639782#L775
and it still creates multiple staging repositories:
Here is out gradle config https://github.com/jaegertracing/jaeger-client-java/blob/master/build.gradle#L87
and also https://github.com/jaegertracing/jaeger-client-java/blob/master/gradle/publish.gradle.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: