phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
374 stars 74 forks source link

Failed message not sent when error occurs duing symlinking #89

Open danielnolan opened 5 years ago

danielnolan commented 5 years ago

deploy:check:linked_files If symlinking step errors out, we do not get a failed deploy notice. 00:04 deploy:check:linked_files ERROR linked file /shared/config/someconfig.yml does not exist on 192.168.150.29

phallstrom commented 5 years ago

From what I can tell Capistrano doesn't fire the failed task which Slackistrano triggers on until the deploy has truly started. Not sure there's anything we can do about the above. If you've got ideas, I'm all ears...

danielnolan commented 5 years ago

Anyway to send a message from Slackistrano when an error occurs?

phallstrom commented 5 years ago

Not without a capistrano even being fired. You'd have to wrap the entire cap deploy... and check error status.