2017-02-16 239 views
1

我有一個發佈一個文件當作擺設(這是最簡單的配置,我可以發現,再現了這個問題)工件依賴關係沒有解決

enter image description here

我有了這樣一個工作,TeamCity的工作工作作爲快照依賴和神器依賴

enter image description here

第二個作業無法啓動,並在日誌如下:

[13:42:27]Collecting changes in 1 VCS root (2s) 
[13:42:27][Collecting changes in 1 VCS root] VCS Root details 
[13:42:27][VCS Root details] "xxx" {instance id=842, parent internal id=191, parent id=XXXXX, description: "GITURL.git#refs/heads/master"} 
[13:42:32]Skip checking for changes - changes are already collected 
[13:42:32]Clearing temporary directory: /home/centos/buildAgent/work/buildTmp 
[13:42:32]Publishing internal artifacts 
[13:42:32][Publishing internal artifacts] Publishing 1 file using [WebPublisher] 
[13:42:32][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher] 
[13:42:32]Checkout directory: /home/centos/buildAgent/work/56c889e980287ca6 
[13:42:32]Resolving artifact dependencies 
[13:42:32][Resolving artifact dependencies] Started downloading files from <XXXX :: Build and push images, build #0.0.34 [id 256119]> 
[13:42:32][Resolving artifact dependencies] Failed to resolve artifact dependency <XXXX :: Build and push images, build #0.0.34 [id 256119]>: IO exception while creating or opening temp file: No such file or directory (jetbrains.buildServer.artifacts.ResolvingFailedException) 
[13:42:32]Publishing internal artifacts 
[13:42:32][Publishing internal artifacts] Publishing 1 file using [WebPublisher] 
[13:42:32][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher] 
[13:42:32]Build failed to start. Artifacts will not be published for this build 
[13:42:33]Build finished 

我們已經驗證了teamcity服務器的確有必要的工件。

當我點擊「檢查工件依賴關係」配置他們解決問題,而不依賴時...

[13:46:45]: Dependency resolving started... 
[13:46:45]: Downloading artifacts from: http://tcurl:8888 
[13:46:45]: Downloading teamcity-deploy.sh from <XXXX :: Build and push images, build from the same chain> to teamcity-deploy.sh; 
[13:46:45]: <XXXX :: Build and push images, build from the same chain> teamcity-deploy.sh => teamcity-deploy.sh 
[13:46:45]: Dependency resolving finished successfully 

有沒有人有任何建議,這可能是導致這個問題?

回答

0

根據修訂版本號選擇「從同一鏈生成」的快照依存關係具有「瞬間」關係。所以人工製品需要的不僅僅是存在,它必須存在於該修訂中。從構建配置頁面成功解析的能力並不意味着所有的依賴於快照的構建。確保處理最新版本的一種方法是使用兩個配置所在的項目頁面中的構建鏈選項卡。展開頂部鏈並確保從同一鏈中運行。你可以在成功的頁面看到這個神器嗎?你從同一個鏈條的構建中看到問題出在哪裏?