title: Jenkinsfile and POM version
body: <p>After we fetch POM model like described in Krzysztof Krasoń's answer in <a href="https://stackoverflow.com/questions/37603619/extract-pom-version-in-a-jenkins-pipeline">extract pom version in a jenkins pipeline</a>. Call to pom.version returns the fully qualified name of the artifact and not just the version.</p>
  
  <p>For example </p>
  
  <pre><code>@NonCPS
  def version() {
      pom = readMavenPom file: 'pom.xml'
      pom.version
  }
  </code></pre>
  
  <p>for</p>
  
  <pre><code>&lt;groupId&gt;com.test.app&lt;/groupId&gt;
  &lt;artifactId&gt;app&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>
  
  <p>will produce </p>
  
  <pre><code>com.test.app:app:pom:1.0.0-SNAPSHOT
  </code></pre>
  
  <p>Is there a way to return just the version part from returned <em>Model</em> without doing any String manipulation?</p>