Last modified by Bastian Triller on 2012/08/24 19:38

From version 123.1
edited by Pascal Robert
on 2012/08/24 19:38
Change comment: There is no comment for this version
To version 126.1
edited by Bastian Triller
on 2023/11/13 11:56
Change comment: Renamed from xwiki:documentation.Installing and Configuring Jenkins

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Using Jenkins Build Server with WebObjects Projects
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.btriller
Tags
... ... @@ -1,0 +1,1 @@
1 +build|favourite|jenkins
Content
... ... @@ -23,7 +23,7 @@
23 23  1. Restart your computer
24 24   This is required because the current version of Jenkins does not create the its directory until it launches after you restart you computer.
25 25  1. Point your browser to: [[http:~~/~~/localhost:8080/>>url:http://localhost:8080/||shape="rect"]]
26 -1. [[Start setting up jobs!>>doc:Installing WebObjects and Wonder for Jenkins using WOJenkins]]
26 +1. [[Start setting up jobs!>>doc:documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.Installing WebObjects and Wonder for Jenkins using WOJenkins.WebHome]]
27 27  
28 28  === Stand-Alone CentOS/RedHat/Amazon Linux ===
29 29  
... ... @@ -63,54 +63,40 @@
63 63  === Servlet Container Installation on Mac OS X (10.5, 10.6) ===
64 64  
65 65  1. Install Tomcat from [[http:~~/~~/www.macports.org>>url:http://www.macports.org||shape="rect"]] with the command
66 -1. {{noformat}}
67 -sudo /opt/local/bin/port install tomcat6
68 -{{/noformat}}Create an administrative user in {{code language="none"}}/opt/local/share/java/tomcat6/conf/tomcat-users.xml{{/code}}. {{code 0="xml"}}
69 -<?xml version='1.0' encoding='utf-8'?>
66 +1. {{noformat}}sudo /opt/local/bin/port install tomcat6{{/noformat}}Create an administrative user in {{code language="none"}}/opt/local/share/java/tomcat6/conf/tomcat-users.xml{{/code}}. {{code 0="xml"}}<?xml version='1.0' encoding='utf-8'?>
70 70  <tomcat-users>
71 71   <role rolename="manager"/>
72 72   <role rolename="admin"/>
73 73   <user username="tomcat" password="tomcat" roles="admin,manager"/>
74 -</tomcat-users>
75 -{{/code}}
71 +</tomcat-users>{{/code}}
76 76  1. {{panel bgColor="#F7D6C1"}}Don't forget to change the username and password after you have finished checking out the build server and start using it in production.{{/panel}}Start Tomcat.
77 -1. {{noformat}}
78 -sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist
79 -{{/noformat}}[[Download Jenkins>>url:http://mirrors.jenkins-ci.org/war/latest/jenkins.war||shape="rect"]], saving {{code language="none"}}jenkins.war{{/code}} somewhere for later.
73 +1. {{noformat}}sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist{{/noformat}}[[Download Jenkins>>url:http://mirrors.jenkins-ci.org/war/latest/jenkins.war||shape="rect"]], saving {{code language="none"}}jenkins.war{{/code}} somewhere for later.
80 80  1. Create a folder for Jenkins to work in: {{code language="none"}}/opt/local/var/db/jenkins{{/code}}
81 81  1. Change ownership of that folder: {{code language="none"}}chown _www:_www /opt/local/var/db/jenkins{{/code}}
82 82  1. Add the following to {{code language="none"}}/opt/local/share/java/tomcat6/conf/setenv.local{{/code}}:
83 -1. {{noformat}}
84 -export JENKINS_HOME=/opt/local/var/db/jenkins
85 -export JAVA_OPTS=-Djava.awt.headless=true
86 -{{/noformat}}Install Jenkins in Tomcat: go to [[http:~~/~~/localhost:8080>>url:http://localhost:8080||shape="rect"]], login with the user and password that you have created in {{code language="none"}}tomcat-users.xml{{/code}}, and upload {{code language="none"}}jenkins.war{{/code}} to the Tomcat server.
77 +1. {{noformat}}export JENKINS_HOME=/opt/local/var/db/jenkins
78 +export JAVA_OPTS=-Djava.awt.headless=true{{/noformat}}Install Jenkins in Tomcat: go to [[http:~~/~~/localhost:8080>>url:http://localhost:8080||shape="rect"]], login with the user and password that you have created in {{code language="none"}}tomcat-users.xml{{/code}}, and upload {{code language="none"}}jenkins.war{{/code}} to the Tomcat server.
87 87  1. Goto [[http:~~/~~/localhost:8080/jenkins>>url:http://localhost:8080/jenkins||shape="rect"]] and you can start configuring your Jenkins build server.
88 88  
89 89  === (% style="color: rgb(0,0,0);" %)**Servlet Container Installation on Mac OS X Server (10.6)**(%%) ===
90 90  
91 91  1. Tomcat is by default installed on Mac OS X Server.
92 -1. Create an administrative user in {{code language="none"}}/Library/Tomcat/conf/tomcat-users.xml{{/code}}. {{code 0="xml"}}
93 -<?xml version='1.0' encoding='utf-8'?>
84 +1. Create an administrative user in {{code language="none"}}/Library/Tomcat/conf/tomcat-users.xml{{/code}}. {{code 0="xml"}}<?xml version='1.0' encoding='utf-8'?>
94 94  <tomcat-users>
95 95   <role rolename="manager"/>
96 96   <role rolename="admin"/>
97 97   <user username="tomcat" password="tomcat" roles="admin,manager"/>
98 -</tomcat-users> 
99 -{{/code}}
89 +</tomcat-users> {{/code}}
100 100  1. {{panel bgColor="#F7D6C1"}}(% style="color: rgb(0,0,0);" %)Don't forget to change the username and password after you have finished checking out the build server and start using it in production. {{/panel}}The way to start it depends on the version. The current way is to go to the Web Settings in Server Admin, Settings, General, check the Tomcat checkbox. Restart the WebServer.
101 101  1. [[Download Jenkins>>url:http://mirrors.jenkins-ci.org/war/latest/jenkins.war||shape="rect"]], saving {{code language="none"}}jenkins.war{{/code}} somewhere for later.
102 102  1. Create a folder for Jenkins to work in: {{code language="none"}}/Library/Jenkins{{/code}}
103 103  1. Change ownership of that folder: {{code language="none"}}chown _appserver:sys /Library/Jenkins{{/code}}
104 104  1. Add the following to {{code language="none"}}/Library/Tomcat/bin/setenv.sh{{/code}}:
105 -1. {{code}}
106 -export JENKINS_HOME=/Library/Jenkins
107 -export JAVA_OPTS=-Djava.awt.headless=true
108 -{{/code}}Make sure that you are using UTF-8 in the Connector, by adding {{code language="none"}}URIEncoding="UTF-8"{{/code}} to the Connector in {{code language="none"}}/Library/tomcat/conf/server.xml{{/code}} as shown here:
109 -1. {{code 0="xml"}}
110 -<Connector port="8080" protocol="HTTP/1.1"
95 +1. {{code}}export JENKINS_HOME=/Library/Jenkins
96 +export JAVA_OPTS=-Djava.awt.headless=true{{/code}}Make sure that you are using UTF-8 in the Connector, by adding {{code language="none"}}URIEncoding="UTF-8"{{/code}} to the Connector in {{code language="none"}}/Library/tomcat/conf/server.xml{{/code}} as shown here:
97 +1. {{code 0="xml"}}<Connector port="8080" protocol="HTTP/1.1"
111 111   connectionTimeout="20000"
112 - redirectPort="8443" URIEncoding="UTF-8"/>
113 -{{/code}}Install Jenkins in Tomcat: go to [[http:~~/~~/localhost:8080>>url:http://localhost:8080||shape="rect"]], login with the user and password that you have created in tomcat-users.xml, and upload jenkins.war to the Tomcat server.
99 + redirectPort="8443" URIEncoding="UTF-8"/>{{/code}}Install Jenkins in Tomcat: go to [[http:~~/~~/localhost:8080>>url:http://localhost:8080||shape="rect"]], login with the user and password that you have created in tomcat-users.xml, and upload jenkins.war to the Tomcat server.
114 114  1. Goto [[http:~~/~~/localhost:8080/jenkins>>url:http://localhost:8080/jenkins||shape="rect"]] and you can start configuring your Jenkins build server.
115 115  
116 116  == Building WO Apps ==
... ... @@ -127,4 +127,4 @@
127 127  
128 128  == Building projects ==
129 129  
130 -See [[doc:Installing WebObjects and Wonder for Jenkins using WOJenkins]]
116 +See [[doc:documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.Installing WebObjects and Wonder for Jenkins using WOJenkins.WebHome]]
Jenkins Installer.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +103.2 KB
Content
JenkinsInstaller.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +103.2 KB
Content
setupWorkspace.sh
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +2.7 KB
Content
... ... @@ -1,0 +1,78 @@
1 +#!/bin/bash
2 +# Call this from Hudson as the first build stage:
3 +#
4 +# /Path/to/Deps/setupWorkspace.sh "${WORKSPACE}" 53
5 +#
6 +# Expects a Deps folder that contains:
7 +# this script
8 +# WebObjects53 folder with System/Library/Frameworks, etc
9 +# WebObjects54 folder with the same (if you use 54)
10 +# Wonder-latest-Frameworks-53.tar.gz (unless you build Wonder in Hudson)
11 +# Wonder-latest-Frameworks-54.tar.gz (if you use 54, unless you build Wonder in Hudson)
12 +# woproject.jar (WOLips woproject.jar ant tasks)
13 +
14 +WORKSPACE=$1
15 +DEPS=`dirname $0`
16 +WO_VERSION=$2
17 +ROOT=$WORKSPACE/Root
18 +WONDER=Wonder-latest-Frameworks-${WO_VERSION}.tar.gz
19 +WOPROJECT=woproject.jar
20 +JOB_ROOT=${WORKSPACE}/../..
21 +
22 +if [ "$WORKSPACE" == "" ]; then
23 + echo "You must provide a workspace setting."
24 + exit 1
25 +fi
26 +
27 +if [ "$WO_VERSION" == "" ]; then
28 + echo "You must provide a WO version."
29 + exit 1
30 +fi
31 +
32 +# Make sure the Libraries folder exists
33 +mkdir -p ${WORKSPACE}/Libraries
34 +
35 +# Setup System and Library
36 +#rm -rf ${ROOT}
37 +mkdir -p ${ROOT}
38 +mkdir -p ${ROOT}/lib
39 +cp ${DEPS}/${WOPROJECT} ${ROOT}/lib
40 +rm -rf ${ROOT}/Library/Frameworks
41 +mkdir -p ${ROOT}/Library/Frameworks
42 +mkdir -p ${ROOT}/Library/WebObjects/Extensions
43 +mkdir -p ${ROOT}/Network/Library/Frameworks
44 +mkdir -p ${ROOT}/User/Library/Frameworks
45 +rm ${ROOT}/System
46 +ln -sf ${DEPS}/WebObjects${WO_VERSION}/System ${ROOT}/System
47 +
48 +# Setup Wonder
49 +# If you want to use the Wonder in Deps, use this:
50 +(cd ${ROOT}/Library/Frameworks; tar xfz ${DEPS}/${WONDER})
51 +# If you build Wonder in Hudson, use this:
52 +#(cd ${ROOT}/Library/Frameworks; tar xfz ${JOB_ROOT}/Wonder/lastSuccessful/archive/dist/Wonder-*-Frameworks-${WO_VERSION}.tar.gz)
53 +
54 +# Copy other frameworks from Hudson build folders based on .classpath entries -- if you don't build everything
55 +# in Hudson, you will need to copy these in yourself
56 +FRAMEWORKS=`cat ${WORKSPACE}/.classpath | grep WOFramework/ | sed 's#.*WOFramework/\([^"]*\)"/>#\1#'`
57 +for FRAMEWORK in $FRAMEWORKS; do
58 + if [ -e "${JOB_ROOT}/${FRAMEWORK}" ]; then
59 + (cd ${ROOT}/Library/Frameworks; tar xfz ${JOB_ROOT}/${FRAMEWORK}/lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz)
60 + fi
61 +done
62 +
63 +# Setup wolips.properties
64 +cat >> ${ROOT}/wolips.properties << END
65 +wo.system.root=${ROOT}/System
66 +wo.user.frameworks=${ROOT}/User/Library/Frameworks
67 +wo.system.frameworks=${ROOT}/System/Library/Frameworks
68 +wo.bootstrapjar=${ROOT}/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
69 +wo.network.frameworks=${ROOT}/Network/Library/Frameworks
70 +wo.api.root=/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/
71 +wo.network.root=${ROOT}/Network
72 +wo.extensions=${ROOT}/Library/WebObjects/Extensions
73 +wo.user.root=${ROOT}/User
74 +wo.local.frameworks=${ROOT}/Library/Frameworks
75 +wo.apps.root=${ROOT}/Library/WebObjects/Applications
76 +wo.local.root=${ROOT}
77 +END
78 +