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
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.
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
andCopyFiles@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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With