简体   繁体   中英

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. Recently, I was not able to see it. The View YAML link become GRAY now.

查看YAML

I tried to delete everything in my pipelines. The View YAML still not shown.

在此处输入图片说明

Is this feature broken or something? How can I enable this?

How to generate YAML from Pipeline on Azure Pipelines

Indeed, this is an issue, which already reported by other user a few days ago.

Ticket: "View YAML" button is disabled

And Daniel A. Schilling also provided a workaround for this issue:

  1. Install the "React Developer Tools" Chrome extension.
  2. Navigate to your build definition in Chrome.
  3. Press F12 to open Developer Tools.
  4. Switch to the React tab of DevTools.
  5. Click the target icon (tooltip is "Select a React element in the page to inspect it")
  6. Click the disabled "View YAML" button.
  7. In the React tab - select the CustomizedActionButton that is inside the div.
  8. In the right-hand "Props" panel, de-select the "disabled" checkbox.
  9. The "View YAML" button should now be enabled. 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:

在此处输入图片说明

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM