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

查看:124
本文介绍了我们可以在发布管道-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?

很抱歉给您带来不便.

此行为是设计,并且MS答复说,他们没有计划在不久的将来支持从发行版本上传文件夹/工件.

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天全站免登陆