Thank you for your answer. Theoretically it would work. I checked this via
a fresh Job, but our multi module project makes trouble.
Am Freitag, 5. September 2014 16:46:44 UTC+2 schrieb slide:
>
> You could just use ${MVN_RELEASE_VERSION} and it should work. If not, you
> would need ${ENV var="MVN_RELEASE_VERSION"}
> On Sep 5, 2014 7:19 AM, <[email protected] <javascript:>> wrote:
>
>> Thank you for your answer. But for me it hasn't worked. Did you have
>> success?
>> Kind regards!
>>
>> Am Samstag, 16. August 2014 18:04:34 UTC+2 schrieb Mark Eggers:
>>>
>>> To expand on what Bertram wrote:
>>>
>>> It appears that the Jenkins Maven release plugin sets a few parameters:
>>>
>>> MVN_RELEASE_VERSION
>>> MVN_DEV_VERSION
>>> MVN_ISDRYRUN
>>>
>>> I've not tried this, but it may be possible to use this information
>>> coupled with the
>>> email extension plugin to send the appropriate message. Borrowing from
>>> the following:
>>>
>>> http://stackoverflow.com/questions/16685052/how-to-
>>> send-an-email-from-jenkins-only-in-a-release
>>>
>>> you might be able to send email only when a release occurs as well.
>>>
>>> I think you would reference the parameters in your message (or title)
>>> as:
>>>
>>> ${ENV.VAR="MVN_RELEASE_VERSION"}
>>>
>>> I haven't tried this yet - it's on my list of things to do this weekend.
>>>
>>> . . . just my two cents
>>> /mde/
>>>
>>> On Sat, 16 Aug 2014 01:34:52 -0700, Bertram Karch wrote:
>>>
>>> > Hi,
>>> >
>>> > I have not tested this, but I think you can do this with the envinject
>>> > plugin and the extended email notification plugin.
>>> > Set the version number with envinject in an environment variable and
>>> use
>>> > this environment variable in the email subject.
>>> >
>>> > Regards,
>>> > Bertram
>>> >
>>> > Am Freitag, 15. August 2014 13:51:26 UTC+2 schrieb
>>> [email protected]:
>>> >>
>>> >> Hi,
>>> >> we build releases with the maven release plugin. We want the subject
>>> line
>>> >> to include the version number. Because it changes during the process
>>> i want
>>> >> to get the version number out of the artifacts (this is easy) and now
>>> i
>>> >> want the version number in the subject line of the mail. Does anybody
>>> has
>>> >> an idea?
>>> >> Regards,
>>> >> Andreas
>>> >>
>>> >>
>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.