發表文章

目前顯示的是 6月, 2020的文章

Jenkins-備份鎖定錯誤

圖片
問題   公司的Jenkins,原本可以正常備份,但這幾天備份出現錯誤,如下訊息: [ERROR] org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file org.jvnet.hudson.plugins.backup.BackupException: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file         at org.jvnet.hudson.plugins.backup.utils.BackupEngine.doBackup(BackupEngine.java:115)         at org.jvnet.hudson.plugins.backup.utils.BackupTask.run(BackupTask.java:130)         at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file         at org.jvnet.hudson.plugins.backup.utils.BackupEngine.handleEnd(BackupEngine.java:104)         at org.apache.commons.io.Directo

WIX-建立URL註冊碼U啟動程式

圖片
前言        此篇今天在測試Notion筆記的桌面應用程式,針對在登入時,透過網頁啟動應用程式這個功能,感到有點好奇。雖然這不是很新奇的功能,幾年前就在iTune上看過,只是自己 寫的程式,都沒試著去作此功能。 實作 開始前,依照 微軟提供的說明 ,我們需註冊URL相關機碼,reg範例檔案內容如下: [HKEY_CLASSES_ROOT\WixLab] @="URL:WixLab Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\kai\DefaultIcon] @="C:\\Program Files (x86)\\WixLab.WpfApp\\WpfApp.exe" [HKEY_CLASSES_ROOT\WixLab\shell] @="" [HKEY_CLASSES_ROOT\WixLab\shell\open] @="" [HKEY_CLASSES_ROOT\WixLab\shell\open\command] @="C:\\Program Files (x86)\\WixLab.WpfApp\\WpfApp.exe /url \"%1\"" 根據上方的機碼內容,在安裝程式時,將內容註冊進去。本範例使用Wix安裝範本作說明(關於Wix請 參考 )。 打開Product.wxs,新增一筆Component如下,紅字 WixLab 為Url Schema開頭。     <!-- 註冊URL執行的機碼-->       <Component Id="RunURLComponent" Guid="*">         <RegistryKey Root="HKCR" Key=" WixLab " >           <RegistryValue Type="string" Name="URL Protocol" Value=""/>           <Regi

刪除Docker資料夾中的windowsfilter目錄

圖片
前言      之前在測試Docker for Windows時,下載了不少Image檔案在我的E槽內,大約有30G左右。今天因硬碟不足,想要來清掉它,但卻出現權限不足,無法刪除的訊息。另一點,很怪的是,Image目錄已經指向其他位置了,都已經沒用到了,也不能刪。 解決方式 下載檔案 https://github.com/jhowardmsft/docker-ci-zap 解壓後,使用管理者權限執行command 如下,就可以完全刪除該目錄 docker-ci-zap.exe -folder "E:\Hyper-V\Docker\windowsfilter" 其它參考 http://edwardkuo.github.io/paper/2017/03/10/Docker/Deletewindowsfilter/