我们可以在发布管道 - Azure devOps 中发布工件吗? [英] Can we publish artifacts in release pipeline - Azure devOps?

查看:23
本文介绍了我们可以在发布管道 - Azure devOps 中发布工件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Java 应用程序,正在尝试使用 Azure DevOps 来构建和部署.我能够进行构建并在构建管道中发布工件.在发布管道中,我在每个阶段进行 (dev/train/prod) 我有一个 maven 任务来取消特定于我能够执行的环境的构建,但我想将它发布为类似于建立管道.是否有任何任务可以执行此操作或任何其他替代方法?

I have a java application and am trying to use Azure DevOps to build and deploy. Am able to do a build and publish the artifact in the build pipeline. In the release pipeline, I stages (dev/train/prod) in each stage I have a maven task to detokenize the build specific to the environment which I am able to do but I want to publish it as a artifact similar to the one in build pipeline. Is there any task to do that or any other alternate approach?

推荐答案

我们能否在发布管道中发布工件 - Azure devOps?

Can we publish artifacts in release pipeline - Azure devOps?

很抱歉给您带来不便.

这种行为是设计的,微软回答说他们没有计划支持在不久的将来上传发布的文件夹/工件.

This behavior is by designed and MS replied they don't have plans to support uploading folder/artifacts from release in near future.

当您检查文档 发布流水线工件任务,声明:

When you check the document Publish Pipeline Artifacts task, It stated that:

在管道中使用此任务为 Azure 发布工件管道(请注意,发布中不支持发布管道.它在多阶段管道中受支持,构建管道和 yaml 管道).

Use this task in a pipeline to publish artifacts for the Azure Pipeline (note that publishing is NOT supported in release pipelines. It is supported in multi stage pipelines, build pipelines, and yaml pipelines).

如果你直接检查 已执行的代码,然后您可以看到发布管道工件任务仅适用于构建管道.

And if you check directly code that is executed, then you can see the Publish Pipeline Artifact task works only for Build pipelines.

您可以在 github 上查看这张票以了解更多详细信息,许多社区都在等待发布管道中的发布工件.

You could check this ticket on github for some more details, many communities are waiting for publish artifact from release pipeline.

因此,我帮助您在我们的 UserVoice 网站上添加了对此功能的请求,该网站是我们提供产品建议的主要论坛:

So, I helped you add a request for this feature on our UserVoice site, which is our main forum for product suggestions:

https://developercommunity.visualstudio.com/idea/823829/support-publish-artifact-from-release-pipeline.html

您可以为此反馈投票并添加您的评论.当有足够多的社区投票并为此反馈添加评论时,产品团队成员会认真对待此反馈.

You could vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously.

希望这会有所帮助.

这篇关于我们可以在发布管道 - Azure devOps 中发布工件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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