Add release instructions to the README.

This commit is contained in:
Christopher Orr 2015-04-02 17:00:37 -07:00
parent 6f0029cd33
commit 8f6df782db
1 changed files with 23 additions and 0 deletions

View File

@ -25,5 +25,28 @@ To build the plugin, ready for installation into Jenkins:
The plugin will be written to `build/libs/deploydb-jenkins.hpi`.
## Release
### One-time preparation
* You must have a [Jenkins account][jenkins-account]
* Add your credentials to `~/.jenkins-ci.org` in the following form:
```
userName=...
password=...
```
### For each release
To publish a plugin update to the Jenkins update centre:
* Update the top-level `version` property in `build.gradle`
* Commit: `git commit -am "Preparing for release ${VERSION}."`
* Tag: `git tag deploydb-jenkins-plugin-${VERSION}`
* Push: `git push && git push --tags`
* Release: `./gradlew clean publish`
Assuming the Gradle build went well, you can confirm here that the release was uploaded correctly:
http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/deploydb/
The plugin update should appear in the Jenkins update centre within four to eight hours.
[deploydb]:https://github.com/lookout/deploydb
[jpi-plugin]:https://wiki.jenkins-ci.org/display/JENKINS/Gradle+JPI+Plugin
[jenkins-account]:https://jenkins-ci.org/account/