<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.kevinlee.io/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>https://www.kevinlee.io/w/index.php?action=history&amp;feed=atom&amp;title=Jenkins</id>
		<title>Jenkins - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.kevinlee.io/w/index.php?action=history&amp;feed=atom&amp;title=Jenkins"/>
		<link rel="alternate" type="text/html" href="https://www.kevinlee.io/w/index.php?title=Jenkins&amp;action=history"/>
		<updated>2026-05-06T07:45:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>https://www.kevinlee.io/w/index.php?title=Jenkins&amp;diff=420&amp;oldid=prev</id>
		<title>Kevin at 15:20, 10 August 2012</title>
		<link rel="alternate" type="text/html" href="https://www.kevinlee.io/w/index.php?title=Jenkins&amp;diff=420&amp;oldid=prev"/>
				<updated>2012-08-10T15:20:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:20, 10 August 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Restart the apache server.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Restart the apache server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Git and Gitolite ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; $ su - tomcat &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; $ ssh-keygen -t rsa &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; /opt/tomcat_user_home/.ssh/tomcat@host&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # Modify ~/.ssh/config &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; Host tomcat-host&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  Hostname host.address&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  Port 1234&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  User tomcat&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  IdentityFile /opt/tomcat_user_home/.ssh/tomcat@host&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # edit ~/.gitconfig &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; [user]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  name = Tomcat&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp;  email = tomcat@host.address&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Test if it works!!!!!!!!!!&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; $ ssh git@tomcat-host&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kevin</name></author>	</entry>

	<entry>
		<id>https://www.kevinlee.io/w/index.php?title=Jenkins&amp;diff=417&amp;oldid=prev</id>
		<title>Kevin: Created page with &quot;Category:Continuous Integration  Jenkins is a continuous integration tool built using Java. It can work as a standalone server since it has the Winstone Servlet Container or ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.kevinlee.io/w/index.php?title=Jenkins&amp;diff=417&amp;oldid=prev"/>
				<updated>2012-08-10T11:33:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:Continuous_Integration&quot; title=&quot;Category:Continuous Integration&quot;&gt;Category:Continuous Integration&lt;/a&gt;  Jenkins is a continuous integration tool built using Java. It can work as a standalone server since it has the Winstone Servlet Container or ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Continuous Integration]]&lt;br /&gt;
&lt;br /&gt;
Jenkins is a continuous integration tool built using Java. It can work as a standalone server since it has the Winstone Servlet Container or it can work on various Servlet Containers or JEE servers such as [[Apache Tomcat]], Glassfish, JBoss, IBM WebSphere, Jetty 6, etc. Jenkins supports Apache Ant and [[Maven]] as well as SCM tools such as CSV and [[Subversion]].&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
* Download the latest Jenkins from the Jenkins web site.&lt;br /&gt;
* Deploy &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; file as a web application to Tomcat server. &lt;br /&gt;
&lt;br /&gt;
== Use Subdomain to Access Jenkins (with SSL) ==&lt;br /&gt;
* Install and enable [[Apache Tomcat#Using mod jk|mod_jk]].&lt;br /&gt;
* Open the &amp;lt;code&amp;gt;workers.properties&amp;lt;/code&amp;gt; file in the &amp;lt;code&amp;gt;/etc/apache2&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
* Add a new &amp;lt;code&amp;gt;worker&amp;lt;/code&amp;gt; for Jenkins.&lt;br /&gt;
 workers.tomcat_home=/opt/tomcat&lt;br /&gt;
 workers.java_home=/usr/lib/jvm/java-6-sun&lt;br /&gt;
 ps=/&lt;br /&gt;
 worker.list=worker1,'''jenkins'''&lt;br /&gt;
 worker.worker1.port=8009&lt;br /&gt;
 worker.worker1.host=localhost&lt;br /&gt;
 worker.worker1.type=ajp13&lt;br /&gt;
 worker.worker1.lbfactor=1&lt;br /&gt;
 '''worker.jenkins.port=8009'''&lt;br /&gt;
 '''worker.jenkins.host=jenkins.yourdomain.com'''&lt;br /&gt;
 '''worker.jenkins.type=ajp13'''&lt;br /&gt;
 '''worker.jenkins.lbfactor=1'''&lt;br /&gt;
&lt;br /&gt;
* Set up &amp;lt;code&amp;gt;JkMount&amp;lt;/code&amp;gt; in the apache virtual host configuration.&lt;br /&gt;
 &amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
     ServerAdmin master@yourdomain.com&lt;br /&gt;
 &lt;br /&gt;
         SSLEngine on&lt;br /&gt;
 &lt;br /&gt;
         SSLOptions +StrictRequire&lt;br /&gt;
 &lt;br /&gt;
         SSLCertificateFile /etc/ssl/certs/server.crt&lt;br /&gt;
         SSLCertificateKeyFile /etc/ssl/private/server.key&lt;br /&gt;
 &lt;br /&gt;
     ServerName jenkins.yourdomain.com&lt;br /&gt;
 &lt;br /&gt;
     JkMount / jenkins&lt;br /&gt;
     JkMount /* jenkins&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the &amp;lt;code&amp;gt;$CATALINA_HOME/conf/server.xml&amp;lt;/code&amp;gt; file to set up a new tomcat virtual host for the jenkins.&lt;br /&gt;
* Add the virtual host info inside the &amp;lt;code&amp;gt;Engine&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Engine name=&amp;quot;Catalina&amp;quot; defaultHost=&amp;quot;localhost&amp;quot;&amp;gt;&lt;br /&gt;
      ... Default Host Info ...&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;Host name=&amp;quot;jenkins.yourdomain.com&amp;quot; appBase=&amp;quot;/opt/tomcat_user_dir/jenkins_webapps&amp;quot;&lt;br /&gt;
            unpackWARs=&amp;quot;true&amp;quot; autoDeploy=&amp;quot;true&amp;quot;&lt;br /&gt;
            xmlValidation=&amp;quot;false&amp;quot; xmlNamespaceAware=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;/Host&amp;gt;&lt;br /&gt;
    &amp;lt;/Engine&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the virtual host is for Jenkins only (e.g. http://jenkins.yourdomain.com),&lt;br /&gt;
# Remove all the files and directories in the &amp;lt;code&amp;gt;appBase&amp;lt;/code&amp;gt; directory which is, in the example above, &amp;lt;code&amp;gt;/opt/tomcat_user_dir/jenkins_webapps&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; file to the &amp;lt;code&amp;gt;appBase&amp;lt;/code&amp;gt; directory and change &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;ROOT.war&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* Restart tomcat and apache.&lt;br /&gt;
 $ /etc/init.d/tomcat stop &lt;br /&gt;
 $ /etc/init.d/tomcat start &lt;br /&gt;
 $ /etc/init.d/apache restart &lt;br /&gt;
&lt;br /&gt;
* access https://jenkins.yourdomain.com.&lt;br /&gt;
&lt;br /&gt;
=== Known Problem ===&lt;br /&gt;
==== More than One Jenkins Instance ====&lt;br /&gt;
* This problem will not happen if the instructions above are used to install Jenkins.&lt;br /&gt;
&lt;br /&gt;
* If Jenkins complains about two jenkins instances using the same JENKINS_HOME with the following error message, stop the tomcat server and check $CATALINA_HOME/work directory and removes duplicate ones if found.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Jenkins detected that you appear to be running more than one instance of Jenkins that share the same home directory &lt;br /&gt;
...&lt;br /&gt;
This greatly confuses Jenkins and you will likely experience strange behaviors, so please correct the situation.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Check &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If the virtual host is only for Jenkins and &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; has the virtual host setup like below with &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; placed in the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; directory, Tomcat server will create two instances (&amp;lt;code&amp;gt;jenkins&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ROOT&amp;lt;/code&amp;gt;) of Jenkins when it starts.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Engine name=&amp;quot;Catalina&amp;quot; defaultHost=&amp;quot;localhost&amp;quot;&amp;gt;&lt;br /&gt;
      ... Default Host Info ...&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;Host name=&amp;quot;jenkins.yourdomain.com&amp;quot; appBase=&amp;quot;/opt/tomcat_user_dir/jenkins_webapps&amp;quot;&lt;br /&gt;
            unpackWARs=&amp;quot;true&amp;quot; autoDeploy=&amp;quot;true&amp;quot;&lt;br /&gt;
            xmlValidation=&amp;quot;false&amp;quot; xmlNamespaceAware=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;!-- WARNING: This is WRONG!!! --&amp;gt;&lt;br /&gt;
          &amp;lt;Context path=&amp;quot;&amp;quot; docBase=&amp;quot;jenkins&amp;quot; debug=&amp;quot;0&amp;quot; reloadable=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/Host&amp;gt;&lt;br /&gt;
    &amp;lt;/Engine&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* To solve this problem, as mentioned already (Read the instructions to &amp;lt;code&amp;gt;Use Subdomain to Access Jenkins (with SSL)&amp;lt;/code&amp;gt;),&lt;br /&gt;
# Remove all the files and directories in the &amp;lt;code&amp;gt;appBase&amp;lt;/code&amp;gt; directory which is, in the example above, &amp;lt;code&amp;gt;/opt/tomcat_user_dir/jenkins_webapps&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; file to the &amp;lt;code&amp;gt;appBase&amp;lt;/code&amp;gt; directory and change &amp;lt;code&amp;gt;jenkins.war&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;ROOT.war&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Remove &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
==== AWT is not properly configured ====&lt;br /&gt;
After installation and accessing jenkins, if it displays an error message like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AWT is not properly configured on this server. Perhaps you need to run your container with &amp;quot;-Djava.awt.headless=true&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.&lt;br /&gt;
(...)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the end of the &amp;lt;code&amp;gt;$TOMCAT_HOME/conf/catalina.properties&amp;lt;/code&amp;gt; file (This is not necessary unless it has the error described above).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java.awt.headless=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
* To set the Tomcat to use UTF-8 to decode URLs, open &amp;lt;code&amp;gt;$CATALINA_HOME/conf/server.xml&amp;lt;/code&amp;gt; file.&lt;br /&gt;
* Add &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; to the following Connector element.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; &lt;br /&gt;
               connectionTimeout=&amp;quot;20000&amp;quot; &lt;br /&gt;
               redirectPort=&amp;quot;8443&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* So it should be like this&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; &lt;br /&gt;
               connectionTimeout=&amp;quot;20000&amp;quot; &lt;br /&gt;
               redirectPort=&amp;quot;8443&amp;quot; &lt;br /&gt;
               URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If it uses &amp;lt;code&amp;gt;mod_jk&amp;lt;/code&amp;gt;, add &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; to&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;8443&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* So this should be&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;8443&amp;quot;&lt;br /&gt;
               URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Restart the tomcat server.&lt;br /&gt;
* &amp;lt;code&amp;gt;JkOptions +ForwardURICompatUnparsed&amp;lt;/code&amp;gt; option needs to be added to the &amp;lt;code&amp;gt;/etc/apache2/mods-enabled/jk.load&amp;lt;/code&amp;gt; file or in the virtual host setup.&lt;br /&gt;
 &amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
     ServerAdmin master@yourdomain.com&lt;br /&gt;
 &lt;br /&gt;
         SSLEngine on&lt;br /&gt;
 &lt;br /&gt;
         SSLOptions +StrictRequire&lt;br /&gt;
 &lt;br /&gt;
         SSLCertificateFile /etc/ssl/certs/server.crt&lt;br /&gt;
         SSLCertificateKeyFile /etc/ssl/private/server.key&lt;br /&gt;
 &lt;br /&gt;
     ServerName jenkins.yourdomain.com&lt;br /&gt;
 &lt;br /&gt;
     '''JkOptions +ForwardURICompatUnparsed'''&lt;br /&gt;
 &lt;br /&gt;
     JkMount / jenkins&lt;br /&gt;
     JkMount /* jenkins&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the apache server.&lt;/div&gt;</summary>
		<author><name>Kevin</name></author>	</entry>

	</feed>