Getting Project Version from Maven POM in Jenkins

前端 未结 11 2286
情歌与酒
情歌与酒 2020-12-01 03:19

Is there any way a Jenkins build can be aware of the Maven version number of a project after processing the POM?

I\'ve got some projects where versioning is controll

11条回答
  •  暖寄归人
    2020-12-01 03:46

    You can use the ${POM_VERSION} variable, which was introduced with https://issues.jenkins-ci.org/browse/JENKINS-18272

提交回复
热议问题