我们最近将我们的本地Windows CI服务器升级为最新的VS2017。在它还在使用VS2015之前。 从那时起,我们的构建中约有30%随机失败,并出现以下错误:
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5):
warning : Failed to execute 'which mono64': ExitStatus = 1 C:\Program
Files (x86)\Microsoft Visual
Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5):
error : The Build Agent 'Build 4.8.0.753' is not running on the Mac.
Please ensure that the assembly versions between the XMA Agents and
the XMA clients matches. A compatible Build Agent is needed in order
to finish the build.
在Mac构建日志中,我们得到了以下内容:
Xamarin.Messaging.Build.BuildAgent: Information: 0: Stopping Agent:
Build: 2018-01-09 10:12:44Z System.Net.Mqtt.Sdk.MqttClientImpl: Error:
0: No session has been found for the client at
System.Net.Mqtt.Sdk.MqttClientImpl.CloseClientSession () [0x00098] in
<65aadb65fa...> at System.Net.Mqtt.Sdk.MqttClientImpl+d__34.MoveNext
() [0x00035] in <65aadb65fa...> System.Net.Mqtt.Sdk.MqttClientImpl:
Information: 0: Client - Disposing. Reason: Error:
Xamarin.iOS.Windows.After.targets
第63行运行SayHello MSBuild任务,因此它看起来像是一个随机失败的任务,即使与Mac的连接仍然存在且运行正常。
我们在Windows机器和Mac mini上使用的版本: Windows:
Mac:
任何想法?
我们怎样才能让它更稳定?