2013-08-22 62 views
0

當我使用我的CI服務器詹金斯,但我有問題,當我要建立的項目,因爲詹金斯不承認編譯errors.This不承認錯誤,是我的問題:詹金斯建設CPP代碼

creating objects directory obj 
g++ -I../src -I third-party/cppunit-1.12.1/include -fPIC -g -Wall -c booktest.cpp -o obj/booktest.o 
g++ -I../src -I third-party/cppunit-1.12.1/include -fPIC -g -Wall -c reader/bookreadertest.cpp -o obj/reader/bookreadertest.o 
g++ -I../src -I third-party/cppunit-1.12.1/include -fPIC -g -Wall -c indexer/indexertest.cpp -o obj/indexer/indexertest.o 
indexer/indexertest.cpp: In constructor ‘IndexerTest::IndexerTest()’: 
indexer/indexertest.cpp:17:12: error: ‘failMethod’ was not declared in this scope 
make: *** [obj/indexer/indexertest.o] Error 1 
creating objects directory obj 
g++ -I ../src -fPIC -g -Wall -c src/main.cpp -o obj/src/main.o 
g++ -o oreallybooks -fPIC -g -Wall obj/src/main.o -L/user/local/lib -L../src/lib -loreally -lm 
Finished: SUCCESS 



I am using bash files to build and clean the cpp project 
I "execute shell" for "build steps" in jenkins and this is the command: 

/var/lib/jenkins/jobs/OreallyBooks/workspace/buildProject 

"buildProject" is bash file and contains: 


!/bin/bash 
cd src; 
make; 
cd ../test; 
make; 
cd ../ui 
make; 

有人可以幫我嗎?謝謝所有

回答