Skip to content

Commit

Permalink
adds notes about bootstrapping Hudson issue...
Browse files Browse the repository at this point in the history
  • Loading branch information
bmabey committed May 30, 2010
1 parent 01c7627 commit 27a6a77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 7 additions & 4 deletions README.md
Expand Up @@ -2,10 +2,8 @@

Chef recipes for continuous integration, code review, and overall code management.
The goal is to have recipes for [Gitosis][gitosis], [Hudson][hudson], [Gerrit][gerrit], and perhaps more.
This is a work in progress...

I only aim to support ubuntu and nginx, but adding apache or other platforms should
be easy if you have the need.
I only aim to support ubuntu and nginx, but adding apache or other platforms should be easy if you have the need.

## Whats Done
* Hudson
Expand Down Expand Up @@ -46,7 +44,7 @@ Note: Prefixing all your `vagrant` commands with `bundle exec ` gets old fast so
This will take a while the first time since it is downloading all the needed packages. If this runs
successfully you should be able to hit the various services:

* **Hudson** - http://localhost:4088
* **Hudson** - http://localhost:4088 (see Troubleshooting section if it doesn't appear to be running)
* **Hudson via nginx** - http://hudson.codebox:4080
* **ssh** - via `./vagrant ssh`

Expand All @@ -70,6 +68,11 @@ Now you will be able to clone the gitosis repo:

Once that is done you can modify the `gitosis.conf` as you normally would to manage repositories.

### Troubleshooting

* **Hudson isn't running after `./vagrant up`** - When bootstrapping for the first time Hudson sometimes fails to restart after installing the plugins (something about being restarted too soon I think). If this happens you simply need to restart the service by `ssh`ing in and typing `/etc/init.d/hudson restart`.

[gitosis]: http://www.ohloh.net/p/gitosis "Gitosis - git management"
[hudson]: http://hudson-ci.org/ "Hudson - CI Server"
[gerrit]: http://code.google.com/p/gerrit/ "Gerrit - Git-based code-review tool"
[rvm]: http://rvm.beginrescueend.com/ "Ruby Version Manager"
8 changes: 7 additions & 1 deletion site-cookbooks/vagrant_main/recipes/default.rb
@@ -1,3 +1,9 @@
require_recipe "hudson::nginx"
require_recipe "gitosis"
require_recipe "hudson::ruby"
require_recipe "gitosis"

# During bootstrap the restarting of Hudson after plugins are installed leaves it in a bad state...
service "hudson" do
action :start
only_if "/etc/init.d/hudson status | grep -q 'Hudson is not running'"
end

0 comments on commit 27a6a77

Please sign in to comment.