The documentation and code at https://github.com/openshift/jenkins-client-plugin always hosts the very latest version, including possibly pre-released versions that are still under test. The associated repository under the JenkinsCI project, https://github.com/jenkinsci/openshift-client-plugin, is only updated as part of cutting official releases of this plugin.
To cut a new release of this plugin, first perform a git clone
of https://github.com/jenkinsci/openshift-client-plugin,
- From the parent directory you've chosen for you local repository, run
git clone [email protected]:jenkinsci/openshift-client-plugin.git
- Change directories into
openshift-client-plugin
, and rungit remote add upstream git://github.com/openshift/jenkins-client-plugin
- Then pull the latest changes from https://github.com/openshift/jenkins-client-plugin with the following:
$ git checkout master
$ git fetch upstream
$ git fetch upstream --tags
$ git rebase upstream/master
$ git push origin master
$ git push origin --tags
Assumptions: your Git ID has push access to the two repositories for this plugin; your Jenkins ID (https://wiki.jenkins-ci.org/display/JENKINS/User+Account+on+Jenkins) is listed in https://github.com/jenkins-infra/repository-permissions-updater/blob/master/permissions/plugin-openshift-client.yml. Given these assumptions:
- Then run
mvn release:prepare release:perform
- You'll minimally be prompted for the
release version
,release tag
, and thenew development version
. Default choices will be provided for each, and the defaults are typically acceptable, so you can just hit the enter key for all three prompts. As an example, if we are currently at v1.0.36, it will provide 1.0.37 for the newrelease version
andrelease tag
. For thenew development version
it will provide 1.0.38-SNAPSHOT, which is again acceptable. - The
mvn release:prepare release:perform
command will take a few minutes to build the plugin and go through various verifications, followed by a push of the built artifacts up to Jenkins. This typically works without further involvement but has failed for various reasons in the past. If so, to retry with the same release version, you'll need to callgit reset
to back of the two commits created as part of publishing the release, as well as usegit tag
to delete both the local and remote version of the corresponding tag. After deleting the commits and tags, usegit push -f
to update the commits at https://github.com/jenkinsci/openshift-client-plugin. Address whatever issues you have (you might have to solicit help on the Jenkins developer group: https://groups.google.com/forum/#!forum/jenkinsci-dev) and try again. - Run
git push https://github.com/openshift/jenkins-client-plugin.git master
to upload the 2 commits created for cutting the new release to our upstream, development repository, and get the two repositories back in sync. - Monitor https://updates.jenkins-ci.org/download/plugins/openshift-client/ for the existence of the new version of the plugin. Warning: the link for the new version will show up, but does not mean the
openshift-client.hpi
file is available yet. Click the link to confirm you can download the new version of the plugin. When you can download the latestopenshift-client.hpi
file, the process is complete, and the new release is available.