Join the DZone community and get the full member experience.
Join For Free
The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo 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
bundle exec rake heroku:predeploy
git push email@example.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.
The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today.
Opinions expressed by DZone contributors are their own.