bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

Jenkins遷移jobs后項(xiàng)目構(gòu)建出現(xiàn)java.nio.file.DirectoryNotEmpt

1、首先說一下遷移過程
1)新環(huán)境部署Jenkins持續(xù)集成環(huán)境,這里不在詳細(xì)說明安裝過程;
2)直接把舊的Jenkins家目錄下得jobs目錄通過scp得方式進(jìn)行傳輸?shù)叫碌铆h(huán)境下;

創(chuàng)新互聯(lián)是一家網(wǎng)站設(shè)計、做網(wǎng)站,提供網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,網(wǎng)站制作,建網(wǎng)站,按需策劃設(shè)計,網(wǎng)站開發(fā)公司,公司2013年成立是互聯(lián)行業(yè)建設(shè)者,服務(wù)者。以提升客戶品牌價值為核心業(yè)務(wù),全程參與項(xiàng)目的網(wǎng)站策劃設(shè)計制作,前端開發(fā),后臺程序制作以及后期項(xiàng)目運(yùn)營并提出專業(yè)建議和思路。

遷移完成后啟動新環(huán)境Jenkins服務(wù),構(gòu)建項(xiàng)目控制臺輸出如下:

Jenkins遷移jobs后項(xiàng)目構(gòu)建出現(xiàn)java.nio.file.DirectoryNotEmpt

觀察控制臺輸出到最后,項(xiàng)目是構(gòu)建成功得,而且不影響運(yùn)行。

2、錯誤原因
通過Google查找得知有人提交了這個issues,This started happening on a new Jenkins server that a teammate was trying to setup by cloning an existing one, and I found out that he used scp -r to copy the whole working tree and that resulted in the lastSuccessful and lastStable soft-links to get converted to physical directories. I guess Jenkins was trying to remove it like it is a file (which a soft-link is), but since it turned out to be a directory that is not empty, it is causing this exception. When you remove/rename these directories, it clears the path for Jenkins to recreate the soft-links thus solving the problem. 鏈接詳情請移步到:https://issues.jenkins-ci.org/browse/JENKINS-21330
翻譯如下:
這開始發(fā)生在一個新的Jenkins服務(wù)器上,隊友試圖通過克隆現(xiàn)有的服務(wù)器來設(shè)置,我發(fā)現(xiàn)他使用scp -r來復(fù)制整個工作樹,這導(dǎo)致了lastSuccessful和lastStable軟鏈接轉(zhuǎn)換為物理目錄。我猜Jenkins試圖刪除它,就像它是一個文件(軟鏈接),但由于它原來是一個非空的目錄,它導(dǎo)致了這個異常。當(dāng)您刪除/重命名這些目錄時,它會清除Jenkins重新創(chuàng)建軟鏈接的路徑,從而解決問題。

3、解決問題
以上我們知道問題所在就很方便得解決問題了,首先登陸到新環(huán)境下,刪除所有項(xiàng)目得 lastSuccessful 和 lastStable目錄:

find jobs/ -type d \( -name "lastSuccessful" -o -name "lastStable" \)  -exec rm -rf {} \;

執(zhí)行完成之后再次構(gòu)建項(xiàng)目就不會再出現(xiàn)以上異常了。

名稱欄目:Jenkins遷移jobs后項(xiàng)目構(gòu)建出現(xiàn)java.nio.file.DirectoryNotEmpt
分享URL:http://vcdvsql.cn/article32/gjegsc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、網(wǎng)站收錄、外貿(mào)建站、虛擬主機(jī)、網(wǎng)站設(shè)計公司、企業(yè)網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)