我的公司最近在 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,经典管道。
关于azure - 有没有办法在 azure 管道构建中查看更多详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74058214/