How do Centrally manage a master CICD pipeline.

Bhawani Shankar Mahawar 6 Reputation points
2020-12-17T05:58:33.003+00:00

How can I manage a master CICD (Azure Build definition) Pipeline centrally where all the inherited pipeline will automatically get the updated changes done in master pipeline?

Is there a way for this requirement?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
703 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Achraf Ben Alaya 1,056 Reputation points MVP
    2024-07-30T16:37:55.01+00:00

    For this Case you need to create a template :

    sample :

    main-template.yml

    jobs:
    - job: Build
      steps:
      - script: echo "Building project..."
        displayName: 'Build Step'
    
    

    project-pipeline.yml (pipeline for a specific project)

    resources:
      repositories:
      - repository: templates
        type: git
        name: your-org/your-repo  # Repository containing main templates 
     extends:   
       template: main-template.yml@templates  # Using the master template 
    
    

    https://learn.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops&pivots=templates-includes?wt.mc_id=MVP_328341

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.