【问题标题】:Is there a way to see more details in azure pipeline building?有没有办法在天蓝色管道建设中查看更多细节?
【发布时间】:2022-10-17 15:02:29
【问题描述】:
我公司最近在 azure pipeline 中从 macOS11 升级到 macOS12。但是构建项目管道不断失败并出现此错误:
##[错误]错误:/usr/bin/xcodebuild 失败,返回码:65
但它并没有告诉我整个建筑日志中的错误在哪里......
有人知道吗?或者我怎样才能看到更多的建筑细节?
【问题讨论】:
标签:
azure
azure-pipelines
azure-pipelines-build-task
azure-pipelines-yaml
azure-pipelines-tasks
【解决方案1】:
使用 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、经典流水线。