gpt4 book ai didi

azure - Azure Devops 管道中的工件

转载 作者:行者123 更新时间:2023-12-03 01:28:55 24 4
gpt4 key购买 nike

我有一个 azure 的 DevOps 管道,它发布如下输出:

steps:
- script: ./something.sh
displayName: build
- publish: $(System.DefaultWorkingDirectory)/app/build
artifact: MyPackage

这有效,并发布了构建工件,但它在 Azure devops 的工件页面中不可用,获取它的唯一方法是通过 http url。有什么方法可以将工件发布到工件页面吗?此外,artefact 的 url 中包含 buildid。有没有办法可以指定 semver 版本号?

最佳答案

如果您想让您的包在 Azure Artifacts 中可用,您应该将其发布到源。 Here您有一个通用包的示例。

谈论 SemVer(来自上面的链接):

In Universal Packages, a particular package is identified by its name and version number. Currently, Universal Packages require Semantic Versioning. Semantic version numbers have three numeric components, Major.Minor.Patch. When you fix a bug, you increment the patch (1.0.0 to 1.0.1). When you release a new backward-compatible feature, you increment the minor version and reset the patch version to 0 (1.4.17 to 1.5.0). When you make a backward-incompatible change, you increment the major version and reset the minor and patch versions to 0 (2.6.5 to 3.0.0).

The Universal Packages task automatically selects the next major, minor, or patch version for you when you publish a new package. Just set the appropriate option.

您将在这里找到构建/管道工件: enter image description here

关于azure - Azure Devops 管道中的工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64119178/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com