File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 11description : Send a Slack message to a channel if the workflow has recovered
2+ parameters :
3+ channel :
4+ description : >
5+ The channel to send the slack notification to. Defaults to empty string which is the web-hooks default channel.
6+ type : string
7+ message :
8+ description : The message to send with the slack notification
9+ type : string
210steps :
311 - run :
412 name : Check if the workflow has recovered
3543 include_project_field : false
3644 include_job_number_field : false
3745 include_visit_job_action : false
38- message : " :tada: $WORKFLOW_LOCK_KEY has recovered!"
46+ channel : << parameters.channel >>
47+ message : << parameters.message >>
3948 color : " #1CBF43"
Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ parameters:
44 description : If true, the default channel will be notified on workflow recovery
55 type : boolean
66 default : false
7+ channel :
8+ description : >
9+ The channel to send the slack notification to. Defaults to empty string which is the web-hooks default channel.
10+ type : string
11+ default : " "
12+ message :
13+ description : The message to send with the slack notification
14+ type : string
15+ default : " :tada: $WORKFLOW_LOCK_KEY has recovered!"
716machine :
817 enabled : true
918steps :
1221 - when :
1322 condition : << parameters.send_slack_on_recovery >>
1423 steps :
15- - send-slack-on-workflow-recovery
24+ - send-slack-on-workflow-recovery :
25+ channel : << parameters.channel >>
26+ message : << parameters.message >>
27+
You can’t perform that action at this time.
0 commit comments