Thanks Mark and Eric. I'll give this suggestion a try

On Thursday, November 21, 2019 at 12:37:44 AM UTC+1, Mark Waite wrote:
>
> If it helps, I have an example that iterates over the changeset 
> <https://github.com/MarkEWaite/jenkins-bugs/blob/873e78402ca3cc2fc2330020cba8794274b2077a/Jenkinsfile#L56>
>  
> provided for a Pipeline job when running on a branch within a multibranch 
> pipeline.
>
> I believe it is limited to multibranch pipelines, but have not checked to 
> be sure.
>
> On Wed, Nov 20, 2019 at 3:44 PM 'Eric Boehm' via Jenkins Users <
> jenkins...@googlegroups.com <javascript:>> wrote:
>
>> You could use groovy to collect the commit message from the ChangeSet and 
>> then put it in an environment variable.
>>
>> On Tuesday, November 19, 2019 at 9:53:52 AM UTC-5, Jeremy Hartley wrote:
>>>
>>> Hi,
>>>
>>> I'm playing around a bit with Git environment variables to send to slack 
>>> and would like to include the Git commit message. I don't see it available 
>>> in the list here: 
>>> https://wiki.jenkins.io/display/JENKINS/Git+Plugin#GitPlugin-Environmentvariables
>>>
>>> Is there any way to send the Git commit message to slackSend as an 
>>> environment variable in my pipeline?
>>>
>>> Thanks
>>>
>>> Jeremy
>>>
>> -- 
>> 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 jenkins...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/a0b485ff-8f48-4432-be5b-8a2d6af600a4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/a0b485ff-8f48-4432-be5b-8a2d6af600a4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Thanks!
> Mark Waite
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/04714215-d3de-4b2b-84a4-8aefdedd2ddc%40googlegroups.com.

Reply via email to