是否可以基于变量创建其他管道步骤? [英] Is it possible to create additional pipeline steps based on a variable?

查看:42
本文介绍了是否可以基于变量创建其他管道步骤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure Devops YAML管道中是否可以基于某些变量数据动态创建其他步骤(而无需创建自己的插件)

Is it possible in Azure Devops YAML pipelines to dynamically create additional steps based on some variable data (without creating our own plugin)

问题是我想遍历几个目录,但是我不想只一步将它们全部包起来,因为这会使扫描到一个错误变得更加困难.

The thing is I see that I want to iterate through several directories, but I don't want to just lump it all in a single step since it makes it harder to scan through to find an error.

推荐答案

是否可以在Azure Devops YAML管道中动态创建基于一些可变数据的其他步骤(无需创建我们自己的插件)

Is it possible in Azure Devops YAML pipelines to dynamically create additional steps based on some variable data (without creating our own plugin)

否,Yaml管道(azure-pipeline.yml)受版本控制.因此,您想要的(对于您的原始标题)是在执行管道时将更改动态提交到 azure-pipeline.yml 文件.不建议这样做.

No, Yaml pipelines(azure-pipeline.yml) are under Version Control. So what you want (for your original title) is to dynamically commit changes to the azure-pipeline.yml file when executing the pipeline. That's not a recommended workflow.

1.相反,您可以考虑使用 Azure Devops条件可动态启用/禁用其他步骤.

1.Instead you can consider using Azure Devops Conditions to dynamically enable/disable the additional steps.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆