Lets asume, we have installed Jenkins on AWS EC2.

See for that my other blogs:

Create a new Ubuntu 12.04.1 Instance on AWS EC2

Install Jenkins on Amazon EC2 (Ubuntu 12.04.1 LTS)

Install Ruby and Ruby on Rails on Ubuntu 12.04 (also for AWS EC2)

If this is done, than we can move on to the next step.

  • Install now all needed Plugins in Jenkins

JenkinsPlugins

If you have installed RVM, GitHub and Git, move on to the next step

  • Create now a new freestyle job and give a name and put your git repo link to it

JenkinsBuildName

 

  • Now lets setup the sourceManagement, be sure to use the ssh link, and not the https from your Github Repository

JenkinsSourceManagement

 

 

  • Now lets setup how to build with the build script, and add the post build task to create a tag after build was successful.

Shell Script:

My Tag name:

 

Here you can see all of the Jenkins Environment Variables

JenkinsEnvironmentVariables

 

Go no to the Settings of your Github repository, open Service hooks and put the Website of your Jenkins server to Jenkins (Github plugin) and Jenkins (Git plugin) as follow:

 

 

 

 

Setup Jenkins for a Rails project with Github
Tagged on:             

Leave a Reply

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers:

Welcome Damir Kusar

Log in

Lost your password?
%d bloggers like this: