Changes for page Installing and Configuring Jenkins
Last modified by Bastian Triller on 2012/08/24 19:38
From version 124.1
edited by Pascal Robert
on 2012/08/24 19:38
on 2012/08/24 19:38
Change comment:
Migrated to Confluence 5.3
To version 126.2
edited by Bastian Triller
on 2012/08/24 19:38
on 2012/08/24 19:38
Change comment:
Changed document parent to [xwiki:documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.WebHome].
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 -Using Jenkins Build Server with WebObjects Projects 1 +documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. probert1 +XWiki.btriller - 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]]