7月 172012
 

リバースプロキシなApacheと連携したい場合などに必要となる事がある。

Javaの実行オプションに--prefix=/jenkinsという具合に付加すると、http://localhost:8080/jenkinsでサーバーが起動する。

[xml title=”jenkins.xml”]
-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080 –prefix=/jenkins
[/xml]

Running Jenkins behind Apache – Jenkins – Jenkins Wiki

Set the context path in Windows by modifying the jenkins.xml configuration file and adding –prefix=/jenkins (or similar) to the entry.
Set the context path when using the Ubuntu package by adding –prefix=/jenkins to JENKINS_ARGS in /etc/default/jenkins ( or in /etc/sysconfig/jenkins for RHEL/CentOS package)

7月 172012
 

バグっぽい。

[java title=”org.webcurator.core.store.CrawlLogIndexer抜粋” mark=”10″]
@Override
public void indexFiles(Long harvestResultOid) throws ServiceException {

// sort the crawl.log file to create a sortedcrawl.log file in the same
// directory.
log.info(“Generating ” + sortedLogFileName + ” file for ” + getResult().getTargetInstanceOid());

// create path to log files folder from input directory..
String logPath = directory.getAbsolutePath().substring(0, directory.getAbsolutePath().length()-1);
logPath = logPath + logsSubFolder + “\\”;

// write new ‘stripped’ crawl.log, replacing multiple spaces with a single space in each record..
try {
[/java]

セパレータとしてバックスラッシュを使用しているが、これではWindows環境でしかセパレータとして認識しない。
本来はFile.separator()かFile.separatorChar()で取得すべきである。
これのせいで正常にログ処理ができていないと考えられる。