gpt4 book ai didi

azure-devops - Azure DevOps 管道触发问题消息不会消失

转载 作者:行者123 更新时间:2023-12-04 12:32:09 25 4
gpt4 key购买 nike

我们的团队正在实现 Azure DevOps 测试管道。在我们最初提交创建管道 .yml 文件后,显示了此错误消息。在查看之后,我意识到我忘记在 .yml 中包含触发器。但是添加后,此错误消息并没有消失。管道按预期工作,但我们只是使用如下所示的手动触发器。唯一列出的问题来自我们的原始提交。有没有办法让我承认这个错误让它消失,或者我可能会错过一个我还没有注意到的其他错误?提前感谢您的任何帮助,如果我可以提供任何其他信息,请告诉我。
以下是我在查看该管道的运行时看到的错误消息。我还附上了我如何设置触发器的屏幕截图。
enter image description here
enter image description here
编辑:根据要求,我在下面包含了实际的 .yml 文件代码,并稍作命名修改。我们确实有一些自定义插件,例如为未跟踪但仍需要创建的文件创建文件。所以你可能需要删除那些来测试这个。

trigger:
- none

pool:
name: myPool
demands:
- msbuild
- visualstudio

steps:

- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.4.1'
inputs:
versionSpec: 4.4.1

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '$(Parameters.solution)'

- task: eliostruyf.build-task.custom-build-task.file-creator@6
displayName: 'Create Connection Strings file'
inputs:
filepath: '$(System.DefaultWorkingDirectory)/ID_Web/config/ConnectionStrings.config'
filecontent: |
<connectionStrings>

</connectionStrings>

endWithNewLine: true

- task: eliostruyf.build-task.custom-build-task.file-creator@6
displayName: 'Create Developer Settings File'
inputs:
filepath: '$(System.DefaultWorkingDirectory)/ID_Web/config/developerAppSettings.config'
filecontent: |
<appSettings>

</appSettings>
endWithNewLine: true


- task: eliostruyf.build-task.custom-build-task.file-creator@6
condition: contains(variables['Agent.Name'], '1')
displayName: 'Create Developer Integration Setting for agent 1'
inputs:
filepath: '$(System.DefaultWorkingDirectory)/ID_Test/config/developerIntegrationSettings.config'
filecontent: |
<developerIntegrationSettings>
<add key="ModelsIntegrationTestDb" value="Models_IntegrationTest_BuildAgent1"/>
<add key="ErrorsIntegrationTestDb" value="Errors_IntegrationTest_BuildAgent1"/>
</developerIntegrationSettings>

endWithNewLine: true


- task: VisualStudioTestPlatformInstaller@1
displayName: 'Visual Studio Test Platform Installer'
inputs:
versionSelector: latestStable

# Build the solution.
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: '$(Parameters.solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true

# Run all unit tests in parallel
- task: VSTest@2
displayName: 'Run Unit Tests'
inputs:
testAssemblyVer2: |
**\*ID_Test*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)/ID_Test'
testFiltercriteria: '(FullyQualifiedName!~Integration & FullyQualifiedName!~Ioc)'
runOnlyImpactedTests: false
vsTestVersion: toolsInstaller
runSettingsFile: 'ID_Test/.runsettings'
runInParallel: true
runTestsInIsolation: false
codeCoverageEnabled: false
testRunTitle: 'Unit Tests'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
diagnosticsEnabled: true
rerunFailedTests: true

# Run integration tests serially
- task: VSTest@2
displayName: 'Run Integration Tests'
inputs:
testAssemblyVer2: |
**\*ID_Test*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)/ID_Test'
testFiltercriteria: '(FullyQualifiedName~Integration | FullyQualifiedName~Ioc)'
runOnlyImpactedTests: false
vsTestVersion: toolsInstaller
runSettingsFile: 'ID_Test/.runsettings'
runTestsInIsolation: true
codeCoverageEnabled: false
testRunTitle: 'Integration Tests'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
diagnosticsEnabled: true
rerunFailedTests: true

# Clean agent directories
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: 'Clean Agent Directories'
编辑(2):下面包括我现在用于触发设置的屏幕截图,最初它是未选中的。虽然检查它似乎没有任何影响。
enter image description here

最佳答案

所以我们放弃了这个问题,因为它没有任何影响,我们找不到问题。大约一两个星期后,它就不再出现了。所以我认为这只是 Azure DevOps 的一些怪癖,而不是管道本身的问题。

关于azure-devops - Azure DevOps 管道触发问题消息不会消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64790091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com