Skip to content

Commit

Permalink
Merge pull request #8 from fibbers/print-group-in-jobname
Browse files Browse the repository at this point in the history
Print group in jobname
  • Loading branch information
sawanoboly committed Aug 18, 2015
2 parents 4006fbd + a7b1a1a commit 797272a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/resources/templates/slack-incoming-message.ftl
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<#assign message="<${executionData.href}|Execution #${executionData.id}> of job <${executionData.job.href}|${executionData.job.name}>">
<#if executionData.job.group??>
<#assign jobName="${executionData.job.group} / ${executionData.job.name}">
<#else>
<#assign jobName="${executionData.job.name}">
</#if>
<#assign message="<${executionData.href}|Execution #${executionData.id}> of job <${executionData.job.href}|${jobName}>">
<#if trigger == "start">
<#assign state="Started">
<#elseif trigger == "failure">
<#assign state="Failed">
<#else>
<#assign state="Succeeded">
</#if>

{
"attachments":[
{
Expand All @@ -15,7 +21,7 @@
"fields":[
{
"title":"Job Name",
"value":"<${executionData.job.href}|${executionData.job.name}>",
"value":"<${executionData.job.href}|${jobName}>",
"short":true
},
{
Expand Down

0 comments on commit 797272a

Please sign in to comment.