2012-08-28 38 views
1

我們使用Hudson CI作爲我們的構建工具,當我們在相同的服務器計算機中引用Hudson運行時的文件系統時,沒有任何問題。Hudson文件SCM插件

但是,當我們使用File SCM插件指向具有所有讀/寫預存的遠程計算機中的文件系統時,它不能檢出並且因以下錯誤而失敗。

FATAL: Parameter 'directory' is not a directory 
java.lang.IllegalArgumentException: Parameter 'directory' is not a directory 
    at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:358) 
    at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:404) 
    at hudson.plugins.filesystem_scm.FolderDiff.getNewOrModifiedFiles(FolderDiff.java:104) 
    at hudson.plugins.filesystem_scm.RemoteFolderDiff$CheckOut.invoke(RemoteFolderDiff.java:94) 
    at hudson.plugins.filesystem_scm.RemoteFolderDiff$CheckOut.invoke(RemoteFolderDiff.java:88) 
    at hudson.FilePath.act(FilePath.java:758) 
    at hudson.FilePath.act(FilePath.java:740) 
    at hudson.plugins.filesystem_scm.FSSCM.checkout(FSSCM.java:123) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1483) 
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:507) 
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424) 
    at hudson.model.Run.run(Run.java:1366) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
+0

您可以發佈您在作業配置的「源代碼管理」和「構建觸發器」部分中設置的值嗎? –

+0

構建觸發器POLL SCM:*/30 * * * *,源代碼管理:FileSystemPath:\\ remoteserver \ d $ \ source \ – user684434

回答

1

有一對夫婦的事情,我能想到根據您的配置 - 請注意,我不是一個Windows專家雖然。

  1. 您的Hudson服務器是否在Windows上運行?如果沒有,則文件系統路徑的\ remoteserver \ d $ \ source \格式將不起作用。
  2. 運行Hudson的用戶是否可以訪問遠程文件路徑\ remoteserver \ d $ \ source \?
+0

是的,它運行在winodows中,正在運行的用戶可以訪問遠程源 – user684434

1

我得到了這個解決方案後,我用用戶名運行Hudson服務,它有權訪問遠程服務器的位置。