I have successfully integrated Cloud Manager Pipeline events with Slack. I get Slack notices when a Pipeline is started or ended. Now I'd like to have useful information about the deployment returned. Example: I'd like the latest Commit message(s) to be sent when the Pipeline starts. That way I know via Slack which code is being deployed in the Pipeline job. Is this possible? I was unable to find an endpoint that returns Git commit information in the docs.
Topics help categorize Community content and increase your ability to discover relevant content.
@jasonhampleman this is possible for production pipelines. The artifactsVersion property of a pipeline execution will contain the tag name which Cloud Manager automatically generates. In your webhook, you can thus use a git client (I've used https://github.com/isomorphic-git/isomorphic-git in the past for this kind of thing) to get the commit associated with that tag. I'll doublecheck if there's an open feature request for adding the commit hash to the execution representation -- that would be necessary to do the same for non-production pipelines. If not, I'll create one on your behalf.