-
Notifications
You must be signed in to change notification settings - Fork 231
Automated the release process #201
Automated the release process #201
Conversation
e8fa91c
to
574ba62
Compare
8ed8dee
to
5a741e2
Compare
Codecov Report
@@ Coverage Diff @@
## master #201 +/- ##
============================================
- Coverage 80.59% 80.43% -0.17%
+ Complexity 478 476 -2
============================================
Files 79 79
Lines 1855 1855
Branches 218 218
============================================
- Hits 1495 1492 -3
- Misses 272 273 +1
- Partials 88 90 +2
Continue to review full report at Codecov.
|
71a9c55
to
3ca1c73
Compare
Could you please describe the process in |
3ca1c73
to
d6b9191
Compare
|
d6b9191
to
549db73
Compare
build.gradle
Outdated
@@ -31,7 +31,7 @@ allprojects { | |||
apply plugin: 'jacoco' | |||
|
|||
group = 'com.uber.jaeger' | |||
version = '0.20.0-SNAPSHOT' | |||
version = System.env.TRAVIS_TAG ? System.env.TRAVIS_TAG : '0.20.0-SNAPSHOT' |
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.
We could also check the tag on regex.
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.
Why?
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.
somebody could accidentally push i-had-a-hard-time-yesterday-1.0
:/
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.
At the current state, this is not a problem. Either this will fail during the upload phase, or we could just not close/release the staging repo at Nexus.
.travis.yml
Outdated
- echo signing.password="${SIGNING_KEY_PASSPHRASE}" >> "$HOME/.gradle/gradle.properties" | ||
- echo ossrhUsername="${SONATYPE_USERNAME}" >> "$HOME/.gradle/gradle.properties" | ||
- echo ossrhPassword="${SONATYPE_PASSWORD}" >> "$HOME/.gradle/gradle.properties" | ||
- echo signing.secretKeyRingFile="${HOME}/.gnupg/secring.gpg" >> "$HOME/.gradle/gradle.properties" |
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.
I think these all should be skipped when not "$TRAVIS_SECURE_ENV_VARS
RELEASE.md
Outdated
1. Once the artifacts are uploaded to Sonatype staging, release them to Maven Central | ||
1. Add an entry to [`CHANGELOG.md`](CHANGELOG.rst) with description of changes in the new release | ||
1. Commit your `CHANGELOG` changes | ||
1. Tag as a version (`git tag 0.20.0`). Use the one from [`build.gradle`](build.gradle) as reference. |
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.
in zipkin release scripts the manual tag has a format release-M.N.P
, and the script creates another tag (I think). If here the manual tag is the only one, it should have the v
prefix, a common convention for semver.
And as @pavolloffay said, I think the build should match on the vM.N.P pattern when publishing a release, instead of any tag.
549db73
to
2559048
Compare
I implemented two changes based on the comments:
I need the following from @yurishkuro :
|
e95eb51
to
339a768
Compare
This PR automates the release process, by setting the version to -SNAPSHOT when on a regular build, but to a proper fixed version when building for a tag. This effectively means that releasing is just a matter of tagging the code at a given point. It's still needed to manually bump the version after a tag. At this stage, closing/releasing of the Nexus repository is still manual and will be automated if the main release procedure proves stable enough.
339a768
to
b1bce5a
Compare
added in #205 |
RELEASE.md
Outdated
1. Bump the version in `build.gradle` to the next release and add `-SNAPSHOT suffix | ||
1. Commit as "Back to development" | ||
|
||
The `uploadArchives` step performs signing of the artifacts. For that to work the script |
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.
I would prefer to keep this section, in case we need to re-generate the key.
Once this is OK, I'll squash the commits and update the PR. I'll also try to release |
This PR automates the release process, by setting the version to -SNAPSHOT
when on a regular build, but to a proper fixed version when building for a tag.
This effectively means that releasing is just a matter of tagging the code at
a given point.
It's still needed to manually bump the version after a tag.
At this stage, closing/releasing of the Nexus repository is still manual and
will be automated if the main release procedure proves stable enough.