There's no particular rules about when to release AnsiColor. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
Make sure you have a Jenkins-CI account configured in ~/.m2/settings.xml
. You can get the encrypted password
from here - enter your password and click Unlock
.
<settings>
<pluginGroups>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
</pluginGroups>
<servers>
<server>
<id>maven.jenkins-ci.org</id>
<username>...</username>
<password>...</password>
</server>
</servers>
</settings>
You must have r/w permissions to github.com/jenkinsci/ansicolor-plugin under the same user name and you need to be listed as a developer in jenkins plugin-ansicolor.yml (see also jenkins #258).
Run tests, check that all tests succeed locally.
mvn test
Check that the last build succeeded in:
Ensure that the version in pom.xml is correct and effectively ends with -SNAPSHOT
.
<artifactId>ansicolor</artifactId>
<version>${revision}${changelist}</version>
<packaging>hpi</packaging>
<properties>
<revision>0.7.0</revision>
<changelist>-SNAPSHOT</changelist>
</properties>
Make sure that your working directory is clean (no uncommitted changes).
Make a release.
$ mvn release:prepare release:perform
The mvn release:prepare
will interactively prompt you for version numbers:
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "AnsiColor"? (org.jenkins-ci.plugins:ansicolor) 0.4.1: :
What is SCM release tag or label for "AnsiColor"? (org.jenkins-ci.plugins:ansicolor) ansicolor-0.4.1: :
What is the new development version for "AnsiColor"? (org.jenkins-ci.plugins:ansicolor) 0.4.2-SNAPSHOT: :
Please read Maven Release Plugin.
- Leave the version as provided (plugin will just remove the
-SNAPSHOT
postfix) if the release has bug fixes and/or very minor features, only (e.g.0.4.1
). - Increment the second number if the release contains major features or breaking API changes (eg. change
0.4.1
to0.5.0
).
Go to the GitHub releases page, find the draft release notes, and edit/publish them.