简体   繁体   English

Azure DevOps 构建和发布管道与 GitFlow 分支

[英]Azure DevOps Build and Release-Pipeline with GitFlow Branching

Given:鉴于:

  • Azure DevOps Azure DevOps
  • GitFlow Branching GitFlow 分支
    • Develop --> Staging开发 --> 暂存
    • Master --> Prod大师 --> 产品
  • Multiple Projects多个项目

Based on this blog I wanted to configure the build and release-pipeline.基于这个博客,我想配置构建和发布管道。 But it looks like this will not work with multiple artifacts但看起来这不适用于多个工件

I have following Pipelines:我有以下管道: 在此处输入图像描述

In this example I did some changes to one of the projects (WebSPA) and merged it into master-branch.在此示例中,我对其中一个项目 (WebSPA) 进行了一些更改,并将其合并到主分支中。

But the release will not work because of not met conditions但是由于不满足条件,发布将无法正常工作在此处输入图像描述

AKS Staging want only artifacts of develop and AKS Production only artifacts of master. AKS 暂存只需要开发工件和 AKS 生产只需要主工件。 Only the latest build-artifacts are recognized.仅识别最新的构建工件。 In this example there are changes in develop, which shall not be merged to master.本例中develop有变化,不能合并到master。 在此处输入图像描述

My hope was to reuse as many things as possible.我的希望是尽可能多地重用东西。 But from what I see I have to duplicate the artifacts.但据我所知,我必须复制工件。 One for develop and one for master?一个用于开发,一个用于大师? Are there better possibilities to use GitFlow-branching with Azure Devops?是否有更好的可能性将 GitFlow 分支与 Azure Devops 一起使用?

What I'm not able to do:我不能做的事情:

  • use another branching model使用另一个分支 model
  • use another CI/CD使用另一个 CI/CD
  • have separate release pipelines for each project/artifact每个项目/工件都有单独的发布管道

About your attachment, the Artifact condition not met error.关于您的附件,Artifact condition not met 错误。 You have set many conditions in the Artifact filters.您在工件过滤器中设置了许多条件。 The Artifac filters meaning is, select artifact condition(s) to trigger a new deployment. Artifac 过滤器的含义是,select 工件条件以触发新部署。 A release will be deployed to this stage only if all artifact conditions match.仅当所有工件条件都匹配时,才会将发布部署到此阶段。

You release pipeline is triggered by one build pipeline artifact, and it can't match all the artifact filters, so you will get the Artifact condition not met error.您发布管道由一个构建管道工件触发,它无法匹配所有工件过滤器,因此您将收到工件条件未满足错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure Devops 构建管道 - 单击一次应用程序发布版本控制策略 - Azure Devops Build Pipeline - Click Once Application Release Versioning Strategy 是否有一个gitflow进程用于分支和错误修复与发布分支? - Is there a gitflow process for branching and bug fixes with a release branch? 如何为nuget包设置Azure DevOps CI构建/发布管道(高级) - How to setup Azure DevOps CI build/release pipeline for nuget packages (advanced) Git分支/工作流模型,如“nvie gitflow”,但没有发布分支 - Git branching / workflow model like “nvie gitflow” but without release branches 生成触发器以创建发布分支Azure Azure Devops - Build trigger to create release branch azure devops Azure DevOps 在发布/{version} 分支上触发构建 - Azure DevOps Trigger build on release/{version} branch 从发布管道推送到本地 Azure DevOps Git - Push to local Azure DevOps Git from Release Pipeline 将更改推送到 GitHub 存储库作为 Azure DevOps 中发布管道的一部分 - Push changes to GitHub repository as a part of release pipeline in Azure DevOps Azure DevOps生成管道无法使用标记和路径筛选器进行生成 - Azure DevOps Build Pipeline cannot build with Tag and Path Filter Gitflow分支策略 - Gitflow branching strategy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM