diff --git a/src/MicrosoftTeamsNotification.groovy b/src/MicrosoftTeamsNotification.groovy index 260860b..5db7b99 100644 --- a/src/MicrosoftTeamsNotification.groovy +++ b/src/MicrosoftTeamsNotification.groovy @@ -16,7 +16,7 @@ rundeckPlugin(NotificationPlugin){ json_payload = JsonOutput.toJson([ title: "[${type}] Rundeck Job Notification - ${execution.project}:${execution.job.group}:${execution.job.name}", summary: "Rundeck Job Notification", - text: "$job id: #${execution.job.id}, job project: ${execution.project}, job group: ${execution.job.group}, job name: ${execution.job.name}, job description: ${execution.job.description}, execution id: #${execution.id}, execution status: ${execution.status}, execution started at: ${execution.dateStarted}", + text: "job id: #${execution.job.id}, job project: ${execution.project}, job group: ${execution.job.group}, job name: ${execution.job.name}, job description: ${execution.job.description}, execution id: #${execution.id}, execution status: ${execution.status}, execution started at: ${execution.dateStarted}", themeColor: "${color}", potentialAction: [ [ @@ -60,7 +60,6 @@ rundeckPlugin(NotificationPlugin){ color = "228B22" //with no args, there is a "configuration" and an "execution" variable in the context json_payload = JsonOutput.toJson([ - title: "Rundeck Job Notification", title: "[${type}] Rundeck Job Notification - ${execution.project}:${execution.job.group}:${execution.job.name}", text: "job id: #${execution.job.id}, job project: ${execution.job.project}, job group: ${execution.job.group}, job name: ${execution.job.name}, job description: ${execution.job.description}, execution id: #${execution.id}, execution status: ${execution.status}, execution started at: ${execution.dateStarted}, execution ended at: ${execution.dateEnded}", themeColor: "${color}",