2015-06-19 29 views
0

我在設置Linux機器中的作業時遇到了Jenkins問題。在Windows機器上它工作正常。這裏是Linux和Windows的控制檯輸出,感謝您提前給予的幫助。我使用 維項目測試:測試和文件夾的監控是「TestApp」致命:無法運行結帳標註維度; jenkins在linux env

---Linux machine console error--- 
Started by user 
[EnvInject] - Loading node environment variables. 
Building in workspace /opt/jenkins/workspace/TestApp 
Deleting project workspace... done 
[DIMENSIONS] Running checkout on master... 
[DIMENSIONS] Running build in '/opt/jenkins/workspace/TestApp'... 
[DIMENSIONS] Checking out project "Test:Test"... 
[DIMENSIONS] Checking out directory 'TestApp'... 
FATAL: Unable to run checkout callout - Dimension command failed - 
    (UPDATE /BRIEF /DIR="TestApp"/WORKSET="Test:Test" /USER_DIR="/opt/jenkins/workspace/TestApp")  (Using Current Project 
'Test:Test'. 
Using '/opt/jenkins/workspace/TestApp/' as the Project work area. 
COR0006326E Error: Project 'Test:Test' does not contain the specified directory 'TestApp' 
Scanning repository: 0.00 sec 
Getting Project: 0.00 sec 
)Finished: FAILURE 


-------- windows machine success---- 
Started by user anonymous 
Building in workspace C:\Users\order\.jenkins\workspace\TestApp 
[DIMENSIONS] Running checkout on master... 
[DIMENSIONS] Running build in 'C:\Users\order\.jenkins\workspace\TestApp'... 
[DIMENSIONS] Removing 'file:/C:/Users/order/.jenkins/workspace/TestApp/'... 
[DIMENSIONS] Checking out project "Test:Test"... 
[DIMENSIONS] Checking out directory 'TestApp'... 
[DIMENSIONS] (Note: Dimensions command output was - 
[DIMENSIONS] SUCCESS: Using Current Project 'Test:Test'. 
[DIMENSIONS] Using 'C:\Users\order\.jenkins\workspace\TestApp\' as the Project work area. 
[DIMENSIONS] Scanning repository: 0.24 sec 
[DIMENSIONS] Scanning local work area: 0.28 sec 
[DIMENSIONS]  Updated 'C:\Users\order\.jenkins\workspace\TestApp\TestApp\.project' using 
Item 'Test:PROJECT--1329969986.A-DAT;1' 

回答

1

我可以能夠通過取消對文件夾條目監控選項擺脫這個問題。所以它可以從維度檢出代碼。 Pre Step - >> Execute Shell非常有幫助。但奇怪的是,當我提供PWD(當前工作目錄)來檢查可用目錄時,它顯示了TestApp。