[英]How to generate YAML from Pipeline on Azure Pipelines
As you can see the following screenshot. 如您所见,下面的屏幕截图。 I was able to view the whole YAML content for the whole Pipeline settings before.
之前,我能够查看整个管道设置的整个YAML内容。 Recently, I was not able to see it.
最近,我看不到它。 The View YAML link become GRAY now.
View YAML链接现在变为灰色。
I tried to delete everything in my pipelines. 我试图删除管道中的所有内容。 The View YAML still not shown.
View YAML仍未显示。
Is this feature broken or something? 这个功能坏了吗? How can I enable this?
如何启用此功能?
How to generate YAML from Pipeline on Azure Pipelines
如何在Azure Pipelines上从Pipeline生成YAML
Indeed, this is an issue, which already reported by other user a few days ago. 确实,这是一个问题,几天前其他用户已经报告了此问题。
Ticket: "View YAML" button is disabled 凭单: “查看YAML”按钮已禁用
And Daniel A. Schilling also provided a workaround for this issue: Daniel A. Schilling还提供了解决此问题的方法:
- Install the "React Developer Tools" Chrome extension.
安装“ React开发人员工具” Chrome扩展程序。
- Navigate to your build definition in Chrome.
在Chrome中导航至您的构建定义。
- Press F12 to open Developer Tools.
按F12打开开发人员工具。
- Switch to the React tab of DevTools.
切换到DevTools的React选项卡。
- Click the target icon (tooltip is "Select a React element in the page to inspect it")
单击目标图标(工具提示为“在页面中选择一个React元素进行检查”)
- Click the disabled "View YAML" button.
单击禁用的“查看YAML”按钮。
- In the React tab - select the CustomizedActionButton that is inside the div.
在React选项卡中-选择div内的CustomizedActionButton。
- In the right-hand "Props" panel, de-select the "disabled" checkbox.
在右侧的“道具”面板中,取消选中“禁用”复选框。
- The "View YAML" button should now be enabled.
现在应启用“查看YAML”按钮。 Click it.
点击它。
Besides , what I would like provide a another simple workaround: 此外 ,我想提供另一个简单的解决方法:
Click other tab (like Variables, Triggers and so on), then click Agent job task or other task. 单击其他选项卡(如变量,触发器等),然后单击代理作业任务或其他任务。 Now, that View YAML link become available:
现在,该View YAML链接变为可用:
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.