Jenkinsをjetty9で動かす

wget http://download.eclipse.org/jetty/stable-9/dist/jetty-distribution-9.1.5.v20140505.tar.gz
tar zxvf jetty-distribution-9.1.5.v20140505.tar.gz

mv jetty-distribution-9.1.5.v20140505 /opt/jetty
cp /opt/jetty/bin/jetty.sh /etc/init.d/jetty
echo JETTY_HOME="/opt/jetty" > /etc/default/jetty

mkdir /opt/jetty/temp
echo "TMPDIR=/opt/jetty/temp" >> /etc/default/jetty

vim /opt/jetty/start.d/http.ini
----
jetty.port=80
----

wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
mv jenkins.war /opt/jetty/webapps/
unzip /opt/jetty/webapps/jenkins.war -d /opt/jetty/webapps/jenkins
vim /opt/jetty/webapps/jenkins.xml
-----------
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/</Set>
  <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins</Set>
  <Get name="securityHandler">
    <Set name="loginService">
      <New class="org.eclipse.jetty.security.HashLoginService">
        <Set name="name">Jenkins Realm</Set>
        <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
      </New>
    </Set>
  </Get>
</Configure>
-----------

service jetty start

本来warを展開する必要はありません。