W
W
web_dev2015-07-13 14:12:43
Java
web_dev, 2015-07-13 14:12:43

Jenkins job for auto-versioning with maven-release-plugin?

Hello,
please tell me how to do automatic versioning with maven-release-plugin.
Installed https://wiki.jenkins-ci.org/display/JENKINS/M2 Release Plugin on Jenkins - configured, everything works.
But I need to press the "Release" button and then manually change versions.
I want Jenkins to track every commit in the trunk and automatically do versioning.
I don't know how or where to set it up.
I will be grateful for hints.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web_dev, 2015-07-15
@web_dev

99% solution.
what the plugin does, run in a normal build process with -B - non interactive release
-Dresume=false -B release:prepare release:perform
Then set up a cron job to look for example every minute for changes,
then in the advanced settings exclude the user with which work starts, otherwise we get recursion. Will build every minute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question