Add release instructions to the README.
This commit is contained in:
parent
6f0029cd33
commit
8f6df782db
23
README.md
23
README.md
@ -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/
|
Loading…
Reference in New Issue
Block a user