mirror of https://github.com/grpc/grpc-java.git
releasing: Move CI config to just after branch creation
This commit is contained in:
parent
4b9c83f978
commit
1331abb326
118
RELEASING.md
118
RELEASING.md
|
|
@ -78,64 +78,7 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
|||
$ git checkout -b v$MAJOR.$MINOR.x master
|
||||
$ git push upstream v$MAJOR.$MINOR.x
|
||||
```
|
||||
2. For `master`, change root build files to the next minor snapshot (e.g.
|
||||
``0.8.0-SNAPSHOT``).
|
||||
|
||||
```bash
|
||||
$ git checkout -b bump-version master
|
||||
# Change version to next minor (and keep -SNAPSHOT)
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
|
||||
```
|
||||
3. Go through PR review and push the master branch to GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
$ git merge --ff-only bump-version
|
||||
$ git push upstream master
|
||||
```
|
||||
4. For vMajor.Minor.x branch, change `README.md` to refer to the next release
|
||||
version. _Also_ update the version numbers for protoc if the protobuf library
|
||||
version was updated since the last release.
|
||||
|
||||
```bash
|
||||
$ git checkout -b release v$MAJOR.$MINOR.x
|
||||
# Bump documented versions. Don't forget protobuf version
|
||||
$ ${EDITOR:-nano -w} README.md
|
||||
$ git commit -a -m "Update README to reference $MAJOR.$MINOR.$PATCH"
|
||||
```
|
||||
5. Change root build files to remove "-SNAPSHOT" for the next release version
|
||||
(e.g. `0.7.0`). Commit the result and make a tag:
|
||||
|
||||
```bash
|
||||
# Change version to remove -SNAPSHOT
|
||||
$ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' "${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
|
||||
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
|
||||
```
|
||||
6. Change root build files to the next snapshot version (e.g. `0.7.1-SNAPSHOT`).
|
||||
Commit the result:
|
||||
|
||||
```bash
|
||||
# Change version to next patch and add -SNAPSHOT
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
|
||||
```
|
||||
7. Go through PR review and push the release tag and updated release branch to
|
||||
GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout v$MAJOR.$MINOR.x
|
||||
$ git merge --ff-only release
|
||||
$ git push upstream v$MAJOR.$MINOR.$PATCH
|
||||
$ git push upstream v$MAJOR.$MINOR.x
|
||||
```
|
||||
8. Make sure you are [logged in](https://grpc-testing.appspot.com/manage) to
|
||||
2. Make sure you are [logged in](https://grpc-testing.appspot.com/manage) to
|
||||
Jenkins, then make a [new release
|
||||
job](https://grpc-testing.appspot.com/view/Releases/newJob)
|
||||
* _Name_: gRPC-Java-$MAJOR.$MINOR-Windows
|
||||
|
|
@ -150,12 +93,69 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
|||
* Click _Build Now_
|
||||
* Click on job #1, then _Console Output_. Verify the `git checkout` checked
|
||||
out the correct commit
|
||||
9. Go to [Travis CI settings](https://travis-ci.org/grpc/grpc-java/settings) and
|
||||
3. Go to [Travis CI settings](https://travis-ci.org/grpc/grpc-java/settings) and
|
||||
add a _Cron Job_:
|
||||
* Branch: `v$MAJOR.$MINOR.x`
|
||||
* Interval: `weekly`
|
||||
* Options: `Do not run if there has been a build in the last 24h`
|
||||
* Click _Add_ button
|
||||
4. For `master`, change root build files to the next minor snapshot (e.g.
|
||||
``0.8.0-SNAPSHOT``).
|
||||
|
||||
```bash
|
||||
$ git checkout -b bump-version master
|
||||
# Change version to next minor (and keep -SNAPSHOT)
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
|
||||
```
|
||||
5. Go through PR review and push the master branch to GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
$ git merge --ff-only bump-version
|
||||
$ git push upstream master
|
||||
```
|
||||
6. For vMajor.Minor.x branch, change `README.md` to refer to the next release
|
||||
version. _Also_ update the version numbers for protoc if the protobuf library
|
||||
version was updated since the last release.
|
||||
|
||||
```bash
|
||||
$ git checkout -b release v$MAJOR.$MINOR.x
|
||||
# Bump documented versions. Don't forget protobuf version
|
||||
$ ${EDITOR:-nano -w} README.md
|
||||
$ git commit -a -m "Update README to reference $MAJOR.$MINOR.$PATCH"
|
||||
```
|
||||
7. Change root build files to remove "-SNAPSHOT" for the next release version
|
||||
(e.g. `0.7.0`). Commit the result and make a tag:
|
||||
|
||||
```bash
|
||||
# Change version to remove -SNAPSHOT
|
||||
$ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' "${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
|
||||
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
|
||||
```
|
||||
8. Change root build files to the next snapshot version (e.g. `0.7.1-SNAPSHOT`).
|
||||
Commit the result:
|
||||
|
||||
```bash
|
||||
# Change version to next patch and add -SNAPSHOT
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
|
||||
```
|
||||
9. Go through PR review and push the release tag and updated release branch to
|
||||
GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout v$MAJOR.$MINOR.x
|
||||
$ git merge --ff-only release
|
||||
$ git push upstream v$MAJOR.$MINOR.$PATCH
|
||||
$ git push upstream v$MAJOR.$MINOR.x
|
||||
```
|
||||
|
||||
Setup Build Environment
|
||||
---------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue