phallstrom / slackistrano

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

`elapsed_time` of zero with CodeShip #92

Open benwalsh opened 5 years ago

benwalsh commented 5 years ago

Not sure if this is a Codeship issue or my configuration. When I deploy from the command line, everything shows up as intended: Screenshot 2019-06-28 at 12 12 56

But for CI deploys from CodeShip variables such as deployer_name and elapsed_time are null. Screenshot 2019-06-28 at 12 12 44

phallstrom commented 5 years ago

I'd need to see your config to know for sure, but the Deployer is most likely because CI doesn't have USER or USERNAME env vars. See https://github.com/phallstrom/slackistrano/blob/master/lib/slackistrano/messaging/helpers.rb#L17

As for why the time is null... maybe the container doesn't have ps ? See https://github.com/phallstrom/slackistrano/blob/master/lib/slackistrano/messaging/helpers.rb#L40

If you can figure out what it does have or maybe it's a different option we can look at patching that.