Bug 871346 - Cannot build rubyonrails successfully on jenkins server.
Summary: Cannot build rubyonrails successfully on jenkins server.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 09:58 UTC by Mengjiao Gao
Modified: 2015-05-14 23:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 23:50:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Console Output when build rubyonrails on Jenkins server. (5.62 KB, application/octet-stream)
2012-10-30 09:58 UTC, Mengjiao Gao
no flags Details

Description Mengjiao Gao 2012-10-30 09:58:18 UTC
Created attachment 635458 [details]
Console Output when build rubyonrails on Jenkins server.

Description of problem:
   After I created a rubyonrails app used the development template type(which used git repo from git://github.com/ironcladlou/rails-example.git). I enabled jenkins to the rubyonrails app. Then when I tried to build the app on jenkins server, I failed with messages like below:
---------------------------------------------------------------
Running .openshift/action_hooks/deploy

Could not find mysql database.  Please run:
rhc app cartridge add -a rubyonrailstemp -c mysql-5.1
then make a sample commit (add whitespace somewhere) and re-push

Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
---------------------------------------------------------------

    However, mysql have been automatically added to the app when the app was created, and I can access the mysql via the ssh url. I have tried to remove mysql cartridge, and add it again. And the app still cannot be built successfully.

    The console output on the jenkins server is attached.

Version-Release number of selected component (if applicable):
devenv_2403

How reproducible:
always

Steps to Reproduce:
1.Go to website and create a rubyonrails app (development template types).
2.Enable jenkins to the app, and try to build the app on jenkins server.
3.
  
Actual results:
Build failed with output message like:"Could not find mysql database."

Expected results:
It should be built successfully.

Additional info:
I have tried other template app such as : cakephp, wordpress and drupal,kitchensink and spring Framework. They can all build successful, and have no mysql problem.

Comment 1 Mike McGrath 2013-01-02 19:41:45 UTC
This might already be fixed, can we confirm?

Comment 2 Dan Mace 2013-01-02 22:33:43 UTC
Please re-test with the current templates in the latest repos configured in the devenvs: I had no issue spinning up a new Rails app, adding the jenkins-client-1.4 cart, and performing a build.

Comment 3 Mengjiao Gao 2013-01-04 05:08:34 UTC
Verified this issue on devenv_2632, since I can create a rubyonrails app successfully, and build the app successfully on jenkins server now.


Note You need to log in before you can comment on or make changes to this bug.