1.mkdir -p /var /var/hudson /var/hudson/.ssh /var/hudson/bin /var/hudson/workspace /var/hudson/container /var/hudson/ci-tools /var/hudson/java
2. useradd -d /var/hudson -c 'Hudson user' hudson
3. Change the password if required for hudson by going to System-->User & Groups -->User --> Uncheck lock password
4. chown -R hudson /var/hudson
5. Download Tomcat 5.5.26 and extract into folder /var/hudson/container/apache-tomcat-5.*.**
6. su hudson
7. tar -xzf apache-tomcat-5.*.**.tar.gz
8. mv apache-tomcat-5.*.** /var/hudson/container/
9. The path to bin folder of tomcat should be /var/hudson/container/apache-tomcat-5.*.**/bin
10. Download JRE/JDK 5 from and install it into /var/hudson/container/jre1.5.*_**.
11. Download hudson.war from https://hudson.dev.java.net/files/documents/2402/97742/hudson.war (current version is 1.218).
12. Put the hudson.war into webapps folder of tomcat located at /var/hudson/container/tomcat-5.*.**/webapps.
13. Create start-server.sh file at /var/hudson with following content:
#!/bin/sh
export JRE_HOME=/var/hudson/container/jre1.5.*_**
export HUDSON_HOME=/var/hudson/workspace
export CATALINA_HOME=/var/hudson/container/apache-tomcat-5.*.**
cd /var/hudson/container/apache-tomcat-5.*.**
sh ./bin/startup.sh &
14. Create stop-server.sh file at /var/hudson with following content:
#!/bin/sh
export JRE_HOME=/var/hudson/container/jre1.5.*_**
export CATALINA_HOME=/var/hudson/container/apache-tomcat-5.*.**
cd /var/hudson/container/apache-tomcat-5.*.**
./bin/shutdown.sh
15. Start the server
16. Open the browser at http://localhost:8080/hudson to see the Hudson home page.
17. . Copy the slave.jar located under /var/hudson/container/apache-tomcat-5.*.**/webapps/hudson/WEB-INF folder into /var/hudson/bin folder.
No comments:
Post a Comment