用自定义参数触发Azure Devops管道
我有一个基于某些运行时参数运行的Azure DevOps管道,该管道运行NPM。
是否有可能在同一管道中触发3个作业,每个运行时参数的作业中的每个作业?
谢谢
I have an Azure DevOps pipeline which runs npm run based on some runtime parameters.
Is there a possibility to trigger for example 3 jobs in the same pipeline, each of the job with different runtime parameters?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。您可以定义对象类型参数,并使用每个表达式对值进行迭代。
这是一个示例:
结果:
-us/azure/devOps/pipelines/process/runtime-parameters?view = azure-devops& tabs& tabs = script#loop-through-parameters“ rel =“ nofollow noreferrer”>通过参数loop loop
Yes. You can define the object type parameter and use each expression to iterate over the values.
Here is an example:
Result:
For more detailed info, you can refer to this doc: Loop through parameters