Search code examples
mavenjenkinsjenkins-pluginsnexusnexus3

Jenkins project version in Nexus Repository Manager Publisher plugin


This is my current working setup: setup

I want to automate these variables: automation

Is there a way to automate the version number in this build step? E.g. extract it from the root pom.xml?

I already tried putting ${project.version} inside the version field, but that didn't work either. Which placeholder am I required to use here, as the field is a required value and cannot be left empty?


Solution

  • Write ${POM_VERSION} instead of 1.0.0

    You can also use ${POM_GROUPID} and ${POM_ARTIFACTID} for the group and for the id of the project.