Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6142383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:22:44+00:00 2026-05-23T18:22:44+00:00

I am new to CI and would like your thoughts and input on how

  • 0

I am new to CI and would like your thoughts and input on how to go about my problem. I would like to first start off that I have been wrestling with this for 2 days(and I don’t have that much background in sys ad) so please play nice?(I am mainly a front-end web dev) 🙂

Basically my plan was to install jenkins then make a CI env with these steps:

  1. poll for any changes to github
  2. if there are, run the build script:
    a. migrate the development and test dbs?(does that mean i have to put the config/database.yml in my repo?)
    b. run cucumber
    c. if all tests pass go to 3, else fail
  3. run any rake setup stuff
  4. run the server(deploy)

I have done some of the stuff by cheating:

  1. in my local, i switch my rvm to the correct one i need(rvm use 1.8.7-p174@mygemset)
  2. run jenkins(java -jar jenkins.war) so that it gets the RVM ruby as default
  3. run spork in a separate terminal(because for some reason my cucumbers don’t run without spork – that’s another problem)
  4. build the project manually by clicking Build

so basically, I want to automate these stuff. Maybe what I need is a set of steps to follow(general or specific, depending on your taste) so I can setup my CI up and running.

Keep in mind that my “cheats” won’t do as I want to test different projects with different setups and the startup cheat just won’t do. Currently, my project build was successful because all I did was to run cucumber(and all my cukes pass). I want it to be able to deploy after it passes so maybe some help there also? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:22:44+00:00Added an answer on May 23, 2026 at 6:22 pm

    Okay I will try and help you as best I can.

    1. poll for any changes to github

    This can be easily done with the Github Plugin located here

    1. if there are, run the build script: a. migrate the development and test dbs?(does that mean i have to put the config/database.yml in my
      repo?) b. run cucumber c. if all tests pass go to 3, else fail

    Then all you would is run the build script you have configure in the in the build from

    Select “Add Build Step” -> “Execute shell”.

    You can either do that which is probably what I would do because when you create build you want them to be portable so you can start up in new jenkins instances, so you dont have to setup your build machine, with build specific files.

    Then you run your tests, if they fail the build should fail regardless here is some information on running ruby on rails tests. if you need to manually fail a build in a script based on a result usually exiting a script with non-zero will fail the build. If not continue and run your rake and deployment scripts.

    Just a few notes on Jenkins it wont do everything for you but if you can do it manaually Jenkins can automate it. So anything you have setup running manually with a little bit of effort you can get up and running automated with Jenkins

    Here is another answer you might find helpful in your general setup and ideology behind Jenkins.

    Goodluck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am about to start a new project and would like to document its
I'm new to domain driven design and would like to hear your thoughts on
As I am new to this I would like your advice. So far I
i would like to buy a new cell phone that runs Android. From what
I would like to know your thoughts on whether this type of methodology could
What are your thoughts on this? I'm working on integrating some new data that's
I have a friend that uses facebook very rarely. What I would like to
Starting a new project and would like to use one of the MVC framworks.
I am making a web-based logviewer using extjs. I would like new log-lines to
I would like a new user of my canvas app to grant the friends_online_presence

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.