azure管道的yaml配置中的'At sign'是什么意思 [英] What does the 'At sign' mean in yaml config for azure pipeline

查看:10
本文介绍了azure管道的yaml配置中的'At sign'是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Azure devops 管道中,任务名称后有带有数字的符号.我认为这些就像版本号.但是是这样吗,和使用有什么区别:

In Azure devops pipeline there are at signs with a number after the task names. I figured these would be like version numbers. But is this the case, and what is the difference between using:

- 任务:CopyFiles@1

- 任务:CopyFiles@2

推荐答案

在 yaml 配置中用于 azure 管道的At 符号"是什么意思

What does the 'At sign' mean in yaml config for azure pipeline

是的,它代表任务版本.更准确地说,是主要版本.

Yes, it represents the task version. More precisely, the major version.

根据文档 任务:

在 YAML 中,您可以在任务名称中使用 @ 指定 主版本.为了例如,固定到任务的版本 2

In YAML, you specify the major version using @ in the task name. For example, to pin to version 2 of the task

另外,

CopyFiles@1CopyFiles@2

恐怕没有人能完整列出这两个版本任务的确切区别.这是软件开发的一般迭代过程.当我们发布初始版本时,我们将根据用户反馈继续重复我们的产品.当我们决定添加一个主要版本时,我们将发布下一个主要版本.这就是V2的由来.

I am afraid no one can completely list the exact difference between the two versions task. This is a general iterative process of software development. When we release the initial version, we will continue to repeat our products based on user feedback. When we decide to add a major version, we will release the next major version. This is the origin of V2.

CopyFilesV2 的历史,我们可以知道不同 Minor 或 Patch 版本之间的迭代和差异.

And from the history of CopyFilesV2, we could to know the know the iterations and differences between different Minor or Patch versions.

所以,CopyFiles@1CopyFiles@2的区别应该是多个问题的修复和功能的改进.

So, the difference between CopyFiles@1 and CopyFiles@2 should be the fixes of multiple issues and the improvement of functionality.

希望这会有所帮助.

这篇关于azure管道的yaml配置中的'At sign'是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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