-
Notifications
You must be signed in to change notification settings - Fork 20
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
Update sonatype permissions #55
Update sonatype permissions #55
Conversation
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
=========================================
Coverage 80.36% 80.36%
Complexity 93 93
=========================================
Files 17 17
Lines 331 331
Branches 1 1
=========================================
Hits 266 266
Misses 64 64
Partials 1 1 Continue to review full report at Codecov.
|
I just did a similar thing on the Trellis repos just last week. It looks like this configuration will work fine, but there are two considerations for things to add. One is that, when it comes time to release the artifacts, you might not want the automated build of the release commit to interfere with the locally-initiated The other consideration is that, periodically, you may find that pushing the build to Sonatype will fail -- there may be weird, transient network issues. Given that, the entire build will fail with this configuration. If that's what you want, then leave this as it is. My perspective is that the tests need to pass, but pushing to Sonatype (and Docker) is just a convenience, so I allow those to fail (even though they succeed 95% of the time). |
BTW, I trust that the encrypted username/password here are revokable. That is, Sonatype will provide a revokable username/password token for a given user so that you don't need to provide Travis-CI with a real username/password combination. I have also found that putting these values in environmental variables might be somewhat easier -- if you need or want to rotate your keys every N months, you won't need to send a new commit just for that purpose: you can just change the settings on the Travis build directly. |
I'm not sure about the release versus snapshot release issue, I'll defer to @jonathangreen and @dannylamb on that one. I did use my account information, so thank you for that. I'll swap it out but also see about adding it to the Travis setup instead. 👍 |
Hmm to use encrypted environment variables, the PRs have to come from the same repo. So this will not deploy anything when the PR is from a forked repository. https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions Not that I consider this a problem, just something to be aware of. |
Though you wouldn't want the pull-request to trigger a deployment, correct? Only after the PR is merged should the |
@acoburn I'm not really clear how we were using these snapshot deployments in the first place, so it is possible this is how it was working before. In which case 👏 we're good 😄 |
@whikloj I agree. I think this looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub Issue: N/A
What does this Pull Request do?
Updates the sonatype environment variables and (hopefully) allows us to release the snapshot builds.
What's new?
How should this be tested?
Travis is
Interested parties
@Islandora-CLAW/committers