是否可以将天蓝色工件从一个管道转发到另一个管道?
Is it possible to forward an azure artifact from one pipeline to another?
我正在做一个项目,我希望中间管道使用来自另一个管道的工件,然后将其转发到另一个管道,然后启动 运行。我还没有设法在线找到此功能的解决方案,我开始认为 Azure DevOps 不支持该功能(截至今天)。有人可以确认管道是否可以实现这种实现吗?如果不是,应该如何处理这种情况?我对 Azure DevOps 比较陌生,所以我可能错过或误解了一些在线信息。
我知道一个管道可以下载另一个管道发布的工件。我知道管道触发器。目前我已经设法在中间管道中使用工件,但现在我必须找到一种方法将这些工件从中间管道发送到特定管道。
感谢所有能得到的帮助。
据我所知,解决方案是添加 Azure Artifacts 来存储管道 1 的输出,然后在管道 2 中下载该工件。
https://docs.microsoft.com/en-us/azure/devops/artifacts/overview?view=azure-devops
but now I have to find a way to send those artifacts to a specific pipeline, from the intermediate pipeline.
我们可以 发布 通过 具体 中的 Publish Build Artifacts or Publish Pipeline Artifacts task in the intermediate pipeline, then we use the Download Build Artifacts or Download Pipeline Artifacts 任务从 中间管道 构建工件管道到下载我们从中间管道发布的工件。
您可以查看此文档 Publish and download artifacts in Azure Pipelines 了解更多详细信息。
更新:
Are you aware if this functionality is planned for Azure DevOps? If we
put it this way - is it possible for my intermediate pipeline to,
depending on some variables, trigger a specific pipeline (i.e. it can
trigger two different pipelines, but which one to trigger depends on
some variables)?
答案是肯定的。有扩展 Trigger Build Task,可用于触发新构建,以便 build-chaining 成为可能。
我们只需要添加变量的值作为这个任务的条件,然后我们就可以根据一些变量触发特定的管道。
Where this specific pipeline is in another project. Is it also
possible for this pipeline to access the variables which I created in
my intermediate pipeline?
我想我可能明白你想要达到的目的。您想在中间管道中创建一些变量,然后在特定管道中使用这些变量。
答案是肯定的。但是没有直接的方法来访问您在中间管道中创建的变量。解决方案我们需要在特定管道中为变量设置默认值,然后使用RESTAPIDefinitions - Update更新中间管道中的那些变量。
请检查 以获得详细的 REST API 脚本。
我正在做一个项目,我希望中间管道使用来自另一个管道的工件,然后将其转发到另一个管道,然后启动 运行。我还没有设法在线找到此功能的解决方案,我开始认为 Azure DevOps 不支持该功能(截至今天)。有人可以确认管道是否可以实现这种实现吗?如果不是,应该如何处理这种情况?我对 Azure DevOps 比较陌生,所以我可能错过或误解了一些在线信息。
我知道一个管道可以下载另一个管道发布的工件。我知道管道触发器。目前我已经设法在中间管道中使用工件,但现在我必须找到一种方法将这些工件从中间管道发送到特定管道。
感谢所有能得到的帮助。
据我所知,解决方案是添加 Azure Artifacts 来存储管道 1 的输出,然后在管道 2 中下载该工件。
https://docs.microsoft.com/en-us/azure/devops/artifacts/overview?view=azure-devops
but now I have to find a way to send those artifacts to a specific pipeline, from the intermediate pipeline.
我们可以 发布 通过 具体 中的 Publish Build Artifacts or Publish Pipeline Artifacts task in the intermediate pipeline, then we use the Download Build Artifacts or Download Pipeline Artifacts 任务从 中间管道 构建工件管道到下载我们从中间管道发布的工件。
您可以查看此文档 Publish and download artifacts in Azure Pipelines 了解更多详细信息。
更新:
Are you aware if this functionality is planned for Azure DevOps? If we put it this way - is it possible for my intermediate pipeline to, depending on some variables, trigger a specific pipeline (i.e. it can trigger two different pipelines, but which one to trigger depends on some variables)?
答案是肯定的。有扩展 Trigger Build Task,可用于触发新构建,以便 build-chaining 成为可能。
我们只需要添加变量的值作为这个任务的条件,然后我们就可以根据一些变量触发特定的管道。
Where this specific pipeline is in another project. Is it also possible for this pipeline to access the variables which I created in my intermediate pipeline?
我想我可能明白你想要达到的目的。您想在中间管道中创建一些变量,然后在特定管道中使用这些变量。
答案是肯定的。但是没有直接的方法来访问您在中间管道中创建的变量。解决方案我们需要在特定管道中为变量设置默认值,然后使用RESTAPIDefinitions - Update更新中间管道中的那些变量。
请检查