项目作者: MeilCli

项目描述 :
multi project/module Azure Pipelines sample
高级语言: C#
项目地址: git://github.com/MeilCli/AzurePipelineSample.git
创建时间: 2019-06-08T02:40:28Z
项目社区:https://github.com/MeilCli/AzurePipelineSample

开源协议:MIT License

下载


AzurePipelineSample

multi project/module Azure Pipelines sample

Pipeline Status
master Build Status
PullRequest(Lib) Build Status
PullRequeset(Core) Build Status
PullRequest(Console) Build Status
PullRequest Build Status

Azure Pipeline Settings

Projects

  • Lib
    • AzurePipelineSample.NETStandard.Lib
    • AzurePipelineSample.NETStandard.Lib.Test
  • Core
    • depends on Lib
    • AzurePipelineSample.NETStandard.Core
    • AzurePipelineSample.NETStandard.Core.Test
  • Console
    • depends on Core
    • AzurePipelineSample.NETCore.Console
    • AzurePipelineSample.NETCore.Console.Test

Pipelines

Sample provides two pull-request pipeline type. Select pipeline type under:

  • Allow duplicate build on many pipelines when changing within multi projects
    • pipeline: PullRequest(Lib), yaml: azure-pipelines-pr-lob.yml
      • Build Lib, Build Core, Test Lib
    • pipeline: PullRequest(Core), yaml: azure-pipelines-pr-core.yml
      • Build Lib, Build Core, Build Console, Test Core
    • pipeline: PullRequest(Console), yaml: azure-pipelines-pr-console.yml
      • Build Lib, Build Core, Build Console, Test Console
  • Distribute build on one pipeline when changing within multi projects
    • pipeline: PullRequest, yaml: azure-pipelines-pr.yml

Example of changing files, will trigger build:

Changing Run PullRequest(Lib) Run PullRequest(Core) Run PullRequest(Console)
Lib files :heavy_check_mark:
Core files :heavy_check_mark:
Console files :heavy_check_mark:
Lib & Core files :heavy_check_mark: :heavy_check_mark:
Core & Console files :heavy_check_mark: :heavy_check_mark:
Lib & Core & Console files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

This dupplicate build is happened by path trigger priority between include and exclude.

PullRequest pipeline will trigger build:

Changing Build Lib Build Core Build Console Test Lib Test core Test Console
Lib files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Core files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Console files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Lib & Core files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Core & Console files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Lib & Core & Console files :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: