英文:
Previous versions of an artifact in Azure Artifact
问题
我是新手Azure DevOps。我想使用Azure Artifact发布我的构建成果,以便我们可以将它们用作Maven依赖项。我面临的问题是,当我部署新版本的构建成果时,它会覆盖先前的版本。这可能会对我的构建成果的用户造成问题。
是否有任何特定的设置可以更改此行为?
英文:
I am new to Azure Devops. I want to use Azure artifact to publish my build artifacts there so that we can use them as a Maven dependency. The issue I am facing is when I deploy a newer version of my artifact, it overrides the previous version. This can lead to issues for the user of my artifacts.
Is there any specific settings using which I can change this behaviour?
答案1
得分: 2
根据您的描述,您正在使用Azure Artifact存储库,对吗?
如果是的话,那么新版本不会覆盖旧版本的软件包。默认情况下,我们可以在存储库首页看到软件包的最新版本。但是,我们可以单击特定的软件包,然后切换到“版本”选项卡以查看该软件包的旧版本。
然后,您可以在项目中引用特定版本的软件包。
英文:
According to your description you are using the Azure Artifact feed, right?
If it is, then the old version of packages will not be overwritten by the new versions. By default we can see the latest version of packages in the feed home page. However we can click the specific package, then switch to the Versions
tab to check the old versions of that package.
Then you can reference the specific version of the packages in your project.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论