Notifications on Successful or Failed Merged PRs on certain branches

I have a shell script for posting hipchat notifications. Whenever we’re doing a build on the develop or a release/* branch, I want to post a hipchat notification when the build starts, and also when the build completes with a success or failure message.

I was just recently shown that CircleCI has when statements, and upon further reading, it seems they can be used with parameters. However, I can’t figure out how to have branching logic paths for parameters, and I can’t think of another way to do it either. Any help would be great!

I would just use Bash conditionals. You can test the branch name using the environment variable CIRCLECI_BRANCH.

1 Like

Thanks, that sounds like it might be the best way to do this.