You can use Jenkins Batch Task Plugin
if you want to deploy the latest revision to Heroku. Our deployment has
two steps: a rake task that pushes assets to S3/Cloudfront and a git
push. So the batch task attached to our repo looks like this.