How to kill an heroku build that is in progress?

jbccollins picture jbccollins · Jun 21, 2018 · Viewed 17.2k times · Source

I accidentally pushed a build that does an npm install in the postinstall script. This has led to my heroku app being stuck in an infinite install loop. I searched the heroku documentation on how to kill builds but came up blank. The closest thing I found was https://help.heroku.com/Z44Q4WW4/how-do-i-stop-a-release-phase and I tried killing as per those instructions but my build won't die :(

Answer

raine picture raine · Jul 4, 2019

If you have a build going into production right now and need to stop it quickly:

heroku plugins:install heroku-builds
heroku builds:cancel -a YOUR_HEROKU_APP_NAME