0
I have a maven job configured, with the m2release plugin. It does the job perfectly, which is:
- building my application
- building a release version
- publishing it to artifactory
That's great.
Now, I want that, anytime I release something, a second job is triggered, which would deploy my artifact to a server.
I can't find a way to do that.
I tried to write a Groovy script, but I can't identify in it that I am running a release run.
PS: I found out how to trigger a script in groovy here: https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin.