Noor All Safaet
Noor All Safaet

Reputation: 448

How do I release only changes project from multiple project in one .sln?

I have 7 projects in one .sln. I am using azure devops. There is 4 api and 3 web. I have created two different pipeline for api and web. When commit then both pipeline is triggered.

What I want....

I want only changes project will trigger, build and release. If project 1 is changes then only build and release project 1. Others no.

How do I manage this?

Currently for one change all projects are building and releasing.

Upvotes: 1

Views: 1257

Answers (2)

Firts of all, if you want only the project you change to trigger the pipeline, you have to create one "pipeline->release" for each project.

When I want something like this normally I create a pipeline whith my build template and then change the trigger option:

Go to edit your pipeline:

enter image description here

And then add the path of the project you want to trigger this pipeline.

enter image description here

So with this you will have a diferent artifact for each project and you will be able to have release only the project you push your changes.

I hope this work for you too!

Upvotes: 2

DreadedFrost
DreadedFrost

Reputation: 2978

Update your includes path in the pipeline.

  paths:
    include:
    - /Project1FolderName/*
    - /Project2FolderName/*

Upvotes: 1

Related Questions