简体   繁体   English

如何在Azure Pipelines上从Pipeline生成YAML

[英]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链接现在变为灰色。

查看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还提供了解决此问题的方法:

  1. Install the "React Developer Tools" Chrome extension. 安装“ React开发人员工具” Chrome扩展程序。
  2. Navigate to your build definition in Chrome. 在Chrome中导航至您的构建定义。
  3. Press F12 to open Developer Tools. 按F12打开开发人员工具。
  4. Switch to the React tab of DevTools. 切换到DevTools的React选项卡。
  5. Click the target icon (tooltip is "Select a React element in the page to inspect it") 单击目标图标(工具提示为“在页面中选择一个React元素进行检查”)
  6. Click the disabled "View YAML" button. 单击禁用的“查看YAML”按钮。
  7. In the React tab - select the CustomizedActionButton that is inside the div. 在React选项卡中-选择div内的CustomizedActionButton。
  8. In the right-hand "Props" panel, de-select the "disabled" checkbox. 在右侧的“道具”面板中,取消选中“禁用”复选框。
  9. 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.

相关问题 Azure Devops - YAML 发布管道 - 如何使用下拉列表 select 构建管道中的特定工件 - Azure Devops - YAML Release Pipelines - How to select a specific artefact from a build pipeline using a dropdown list 如何使用Yaml配置从Azure管道生成特定版本的nuget软件包 - How to generate specific version of nuget package from azure pipelines using yaml configuration 如何发布特定的先前版本 azure 管道 output 与 azure Z6EEDC03A68A69933C2FZDF管道76 - How to release a specific previous build azure pipeline output with azure yaml pipelines 如何从 Azure DevOps 中的 YAML 管道获取阶段结果 - How to get stage results from YAML pipelines in Azure DevOps 如何从 yaml 管道中的 powershell 连接到 azure devops? - How to connect to azure devops from powershell in yaml pipelines? Azure DevOps:不包括对 yaml 管道文件的更新以触发相同的管道? - Azure DevOps : excluding updates to yaml pipeline files from triggering those same pipelines? 使用 YAML 管道和 gitflow 时,如何仅更新 Azure Devops 中的管道? - How to update only the pipeline in Azure Devops when using YAML pipelines and gitflow? Azure Yaml 管道:如何在“运行新”之前运行管道后重置参数 - Azure Yaml pipelines : How to reset a parameter after running the pipeline before "Run new" Azure YAML 管道:是否可以找出哪个管道触发了构建? - Azure YAML Pipelines: Is it possible to find out which pipeline triggered a build? 将现有(整个)Azure DevOps 管道迁移到基于 YAML 的管道(批量) - Migrating existing (entire) Azure DevOps pipeline to YAML based pipelines (in bulk)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM