CruiseControl:激闘編


前回あきらめたはずの「CVSと比較」がやはり呼んでいる。

寝るときに思ったこと:「何かと比較するのだから、その対象を考えればよい」


んー、タグに含まれる属性で気になるのは、というか主なのはこいつら。

・localWorkingCopy
 なんかローカルに置くらしい
・cvsroot
 これは言わずもがな


これが"One of cvsroot or localworkingcopy"なのに、両方書いても怒られないのだ。

ひとまず"cvsroot"を指定した時。これはEclipse等でも使っているもの(にさらにパスワードを直書きした!もの)。


 


実行結果

[cc]5-18 17:22:26 Main - CruiseControl Version 2.2.1
[cc]5-18 17:22:26 trolController- projectName = [Test1]
[cc]5-18 17:22:26 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:22:27 Project - Project Test1 starting
[cc]5-18 17:22:27 Project - Project Test1: idle
[cc]5-18 17:22:27 BuildQueue - BuildQueue started
[cc]5-18 17:22:27 Project - Project Test1 started
[cc]5-18 17:22:27 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:22:27 Project - Project Test1: waiting for next time to build
[cc]5-18 17:22:37 Project - Project Test1: in build queue
[cc]5-18 17:22:37 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:22:37 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:22:37 Project - Project Test1: bootstrapping
[cc]5-18 17:22:37 Project - Project Test1: checking for modifications
[cc]5-18 17:22:38 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:22:38 Project - Project Test1: idle
[cc]5-18 17:22:38 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:22:38 Project - Project Test1: waiting for next time to build

※この辺りで一つコミットしてみた

[cc]5-18 17:22:48 Project - Project Test1: in build queue
[cc]5-18 17:22:48 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:22:48 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:22:48 Project - Project Test1: bootstrapping
[cc]5-18 17:22:48 Project - Project Test1: checking for modifications
[cc]5-18 17:22:49 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:22:49 Project - Project Test1: idle
[cc]5-18 17:22:49 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:22:49 Project - Project Test1: waiting for next time to build
[cc]5-18 17:22:59 Project - Project Test1: in build queue
[cc]5-18 17:22:59 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:23:00 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:23:00 Project - Project Test1: bootstrapping
[cc]5-18 17:23:00 Project - Project Test1: checking for modifications
[cc]5-18 17:23:01 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:23:01 Project - Project Test1: idle
[cc]5-18 17:23:01 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:23:01 Project - Project Test1: waiting for next time to build


・・・何もおきない。


では属性を追加。


 


実行結果

[cc]5-18 17:27:55 Main - CruiseControl Version 2.2.1
[cc]5-18 17:27:55 trolController- projectName = [Test1]
[cc]5-18 17:27:55 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:27:55 Project - Project Test1 starting
[cc]5-18 17:27:55 Project - Project Test1: idle
[cc]5-18 17:27:55 BuildQueue - BuildQueue started
[cc]5-18 17:27:55 Project - Project Test1 started
[cc]5-18 17:27:55 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:27:55 Project - Project Test1: waiting for next time to build
[cc]5-18 17:28:05 Project - Project Test1: in build queue
[cc]5-18 17:28:05 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:28:05 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:28:05 Project - Project Test1: bootstrapping
[cc]5-18 17:28:05 Project - Project Test1: checking for modifications
cvs log: in directory .:
cvs [log aborted]: there is no version here; run 'cvs checkout' first
[cc]5-18 17:28:07 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:28:07 Project - Project Test1: idle
[cc]5-18 17:28:07 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:28:07 Project - Project Test1: waiting for next time to build


チェックアウトしろ???


じゃぁ手動でチェックアウトしてみよう。
antを使ってチェックアウト実行し、WORK_DIR/checkout/以下に落としてきた。
=>CVSリポジトリ直下にあるディレクトリがWORK_DIR/checkout直下にくるようにした。

実行結果

[cc]5-18 17:47:24 Project - Project Test1: in build queue
[cc]5-18 17:47:24 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:47:24 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:47:24 Project - Project Test1: bootstrapping
[cc]5-18 17:47:24 Project - Project Test1: checking for modifications
[cc]5-18 17:47:27 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:47:27 Project - Project Test1: idle
[cc]5-18 17:47:27 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:47:27 Project - Project Test1: waiting for next time to build


※この辺りで一つコミットしてみた

[cc]5-18 17:47:37 Project - Project Test1: in build queue
[cc]5-18 17:47:37 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:47:38 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:47:38 Project - Project Test1: bootstrapping
[cc]5-18 17:47:38 Project - Project Test1: checking for modifications
[cc]5-18 17:47:41 odificationSet- 1 modification has been detected.
[cc]5-18 17:47:41 Project - Project Test1: now building
Buildfile: build-Test1.xml
[cc]5-18 17:47:42 Project - Project Test1: merging accumulated log files
[cc]5-18 17:47:42 Project - Project Test1: build successful
[cc]5-18 17:47:42 Project - Project Test1: publishing build results
[cc]5-18 17:47:42 Project - Project Test1: idle
[cc]5-18 17:47:42 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:47:42 Project - Project Test1: waiting for next time to build
[cc]5-18 17:47:52 Project - Project Test1: in build queue
[cc]5-18 17:47:52 BuildQueue - now adding to the thread queue: Test1
[cc]5-18 17:47:52 Project - Project Test1: reading settings from config file [D:\work\cruise\config.xml]
[cc]5-18 17:47:52 Project - Project Test1: bootstrapping
[cc]5-18 17:47:52 Project - Project Test1: checking for modifications
[cc]5-18 17:47:55 Project - Project Test1: No modifications found, build not necessary.
[cc]5-18 17:47:55 Project - Project Test1: idle
[cc]5-18 17:47:55 Project - Project Test1: next build in 10 seconds
[cc]5-18 17:47:55 Project - Project Test1: waiting for next time to build


キタ━━━━(゜∀゜)━━━━ッ!!


変更が検出され、ビルドファイルが実行されている。
ログファイルも作成された。
そしてその次のループではビルドの変更なし!。

ふう、めでたしめでたし。






・・・ちょっとまった!!!





ということは、起動するたびに手動でチェックアウトしろということか?
手引き*1

Manually checkout the CVS module for the project you want to build, into WORK_DIR/checkout. We will refer to your project name as MY_PROJECT_1, and assume that the CVS module has the same name. You will now have a subdirectory like WORK_DIR/checkout/MY_PROJECT_1.


あくまで"手動で"ということか。


んー、shの中でチェックアウトしてからCC起動するしかないのかな。



そして、しばらくいじってみて気がついた新たな問題。






(ll Д ) ゜ ゜ ・・・ファイルの追加は検出してくれないのですが。






どうやら、チェックアウトしたものだけが比較対象らしい。



・・・ど、ど、ど、どうすれば!!!11!!