docs/contrib/ms-teams.md
require 'contrib/ms-teams.php';
Require ms-teams recipe in your deploy.php file:
Setup:
require 'contrib/ms-teams.php';
set('teams_webhook', 'https://outlook.office.com/webhook/...');
Add in content:
before('deploy', 'teams:notify');
after('deploy:success', 'teams:notify:success');
after('deploy:failed', 'teams:notify:failure');
9.) Sip your coffee
teams_webhook – teams incoming webhook url, required
set('teams_webhook', 'https://outlook.office.com/webhook/...');
teams_title – the title of application, default {{application}}teams_text – notification message template, markdown supported
set('teams_text', '_{{user}}_ deploying `{{what}}` to *{{where}}*');
teams_success_text – success template, default:
set('teams_success_text', 'Deploy to *{{where}}* successful');
teams_failure_text – failure template, default:
set('teams_failure_text', 'Deploy to *{{where}}* failed');
teams_color – color's attachmentteams_success_color – success color's attachmentteams_failure_color – failure color's attachmentIf you want to notify only about beginning of deployment add this line only:
before('deploy', 'teams:notify');
If you want to notify about successful end of deployment add this too:
after('deploy:success', 'teams:notify:success');
If you want to notify about failed deployment add this too:
after('deploy:failed', 'teams:notify:failure');
Title of project
return get('application', 'Project');
Allow Continue on Failure
false
Deploy message
'_{{user}}_ deploying `{{what}}` to *{{where}}*'
'Deploy to *{{where}}* successful'
'Deploy to *{{where}}* failed'
Color of attachment
'#4d91f7'
'#00c100'
'#ff0909'
Notifies Teams.
Notifies Teams about deploy finish.
Notifies Teams about deploy failure.