title: Git flow: How to configure a one-click release process in Jenkins?
body: <p>We are using the standard git flow branching model (develop, master, release-<em>, hotfix-</em>, etc).</p>
  
  <p>As part of our workflow, we would like to set up a "one-click" release via jenkins.</p>
  
  <p>I was looking at the <a href="https://bitbucket.org/atlassian/jgit-flow/wiki/Home">jgitflow-maven-plugin</a>. Can I set up this plugin to do a one-click release from jenkins? If so, what are the configuration options?</p>
  
  <p>In particular, can I do something like this?</p>
  
  <pre><code>Jenkins Job
  Maven goals:    release-start release-finish -Dsomething -Delse
  </code></pre>
  
  <p>And is there a way tell it to automatically build from the latest -SNAPSHOT version, e.g. if the version is <code>1.2.3-SNAPSHOT</code> it would build <code>release-1.2.3</code>.</p>
  
  <p>Otherwise, is there a maven plugin that builds releases <em>according the git flow branching model</em> (i.e. build from <code>develop</code> and create a new release branch named <code>release-x.y.z</code>).</p>