azure - 有没有办法在 azure 管道构建中查看更多详细信息?

标签 azure azure-pipelines azure-pipelines-build-task azure-pipelines-yaml azure-pipelines-tasks

我的公司最近在 azure pipeline 中从 macOS11 升级到 macOS12。但建筑项目管道不断失败并出现以下错误:

##[错误]错误:/usr/bin/xcodebuild 失败,返回代码:65

但它没有告诉我错误在整个建筑日志中的位置...

有人有什么想法吗?或者如何查看更多建筑细节?

最佳答案

使用 System.debug=true 作为环境变量将使 DevOps 管道显示整个日志。

有两种情况:

1,YAML 管道。

trigger:
- none

pool:
  vmImage: ubuntu-latest

variables:
- name: system.debug
  value: true #This will help show more log details.

steps:
- task: PowerShell@2
  inputs:
    targetType: 'inline'
    script: |
      # Write your PowerShell commands here.
      
      Write-Host "Hello World"

2,经典管道。

enter image description here

关于azure - 有没有办法在 azure 管道构建中查看更多详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74058214/

相关文章:

azure-devops - VSTS "Windows Machine File Copy"任务失败 : ErrorMessage: 'The network path was not found'

ASP.NET Core 中的 Azure B2C 注销实现?

Azure流量管理器ARM模板不会采用resourceTargetId

visual-studio - 如何在应用程序上下文中运行 Visual Studio 测试任务(某个服务主体)

azure - 根据 Azure DevOps Pipelines YAML 中的条件隐藏/显示参数

Azure 开发运营 : CI Pipeline executing after merge

git - 如何在本地运行 VSTS 构建定义序列而不推送到存储库

azure - Azure 上的 Terraform Snowpipe 集成时出现错误

Azure 机器人框架 - 连接打开和关闭

azure - 使用表达式作为 Azure yml 管道中缓存键的一部分