Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploying Latest to Heroku with Jenkins CI

DZone's Guide to

Deploying Latest to Heroku with Jenkins CI

· DevOps Zone ·
Free Resource

Can you release faster without sacrificing quality? See how with our free ebook Strategies for a Successful Test Automation Project and a free trial of Ranorex Studio today!

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.
    git rev-parse HEAD
    echo $GIT_COMMIT
    bundle exec rake heroku:predeploy
    git push git@heroku.com:heroku-app.git $GIT_COMMIT:master

The first two lines are there for logging, so that we know which revision was pushed to Heroku.

We’re now missing two important pieces from Heroku-bartender’s functionality: a visual of which revision has been deployed and the ability to run a task on any previous build.


Source: http://code.dblock.org/deploying-latest-to-heroku-with-jenkins-ci



Get your test automation project off to the right start. Download your free test planning template and a 30-day no-obligation trial of Ranorex Studio today!

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}