Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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:

- task: CopyFiles@1

and

- task: CopyFiles@2

like image 440
botenvouwer Avatar asked Oct 01 '19 08:10

botenvouwer


People also ask

What is trigger in Azure pipeline YAML?

Scheduled release triggers allow you to run a release pipeline according to a schedule. Pull request release triggers are used to deploy a pull request directly using classic releases. Stage triggers in classic release are used to configure how each stage in a classic release is triggered.


1 Answers

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

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

According the document Tasks:

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

Besides,

what is the difference between CopyFiles@1 and CopyFiles@2

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.

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

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

Hope this helps.

like image 64
Leo Liu-MSFT Avatar answered Oct 01 '22 02:10

Leo Liu-MSFT