Hello.
I'm using your quickstart scripts to build dev boxes for my team.
I have added the following to your great scripts in order to:
1. Add Hudson
2. Put it on port 8081 to no conflict with Solr
3. Make "quickstart" the hudson user and hudson directory
After the code is run, a restart of hudson will create hudson files in the quickstart directory. Code goes in an sh script and the script can be added in the install-quickstart.sh file as: bash -x ~/quickstart/quickstart-add-hudson.sh
#!/bin/bash
cd ~
wget -O /tmp/key http://hudson-ci.org/debian/hudson-ci.org.key
sudo apt-key add /tmp/key
wget -O /tmp/hudson.deb http://hudson-ci.org/latest/debian/hudson.deb
sudo dpkg --install /tmp/hudson.deb
sudo apt-get install -f #this just fixes any dependencies, usually just daemon
mkdir /home/quickstart/hudson
zenity --info --text="Around line 15 change the user to: HUDSON_USER=quickstart and around line 40 change the port to HTTP_PORT=8081"
sudo gedit /etc/default/hudson
Hope this may be useful to someone else.
Comments
Comment #1
sikjoy commentedAfter running your shell script and going through the install, when visiting http://localhost:8081, I get the following message:
Should I also edit the HUDSON_HOME=/home/quickstart/hudson variable around line 21 in /etc/default/hudson?
Comment #2
MichaelCole commentedHi Sean,
I added this to cvs, but haven't tested it. Do you have any advice for Sicjoy's issue?
Comment #3
MichaelCole commentedHi, adding Hudson would be awesome, but I need to postpone this for a 1.0.
If you make any progress, add some notes so I can use it.
Thanks,
Mike
Comment #4
Sean Buscay commentedHi Michael and sicjoy,
Sorry, Just saw this.
Here's the latest version of the script:
Note: In the previous script I forgot to note that I also change the hudson directory to be under quickstart. That's why it gave the error sicjoy posted.
Comment #5
MichaelCole commentedComment #6
MichaelCole commentedupdated etc/install-hudson.sh
Will test out.
Comment #7
MichaelCole commentedJust added this to upcoming version. Works great, thanks for the code Sean --Mike