簡體   English   中英

Jenkins Windows 10:沒有工作樹就不能使用 git-submodule

[英]Jenkins Windows 10: git-submodule cannot be used without a working tree

我們有 jenkins Windows 10 CI 生成器。

我們的項目有子模塊,我想“git submodule update --init --recursive”。

此命令是從 cmake 腳本調用的,但即使啟用子模塊處理,錯誤也會相同: C:\Program Files\Git\mingw64/libexec/git-core\git-submodule 不能在沒有工作樹的情況下使用。 在此處輸入圖像描述

Current setup copies all files of project from Ubuntu jenkins is run on( the setup is not known for sure and I started studying Jenkins from bottom ) and puts them into Windows CI builder into Pull_Request_Builder_Winx64 folder.

嘗試從此文件夾手動運行 git:結果相同

嘗試在使用 git 克隆下載的同一項目上手動運行更新,它可以工作。

請幫忙找到問題的根源,在此先感謝

問題是工作空間路徑中的符號鏈接( C:/jenkins/workspace,“工作空間”是指向 R:/workspace 的符號鏈接)

解決方案更改 jenkins 節點配置中的遠程根目錄,因此它不包含符號鏈接(新路徑:R:/jenkins,工作空間的路徑將是 ZE1E1D3D40573127E9EE0480CAF128) 在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM