we've recently started using Azure DevOps and I'm having trouble setting up our release pipeline for the DEV environment.
Current status:
- We have a solution (git repository) with a variety of different web projects
- We have a MAIN branch and develop on separate feature branches
- I have a CI build pipeline that starts automatically after each commit to a feature branch.
- There are multiple release pipelines (for each project) that publish the output of the CI feature build pipeline to the DEV environment
Problem:
- The output of the CI build pipeline always corresponds to the status of the feature branch that was last committed. The release pipelines therefore always publish the last feature branch commit
Example:
Developer A is working on feature ChangeTireColor for project CarConfigurator
Developer B is working on ChangeFrameSize feature for BikeConfigurator project
A makes a commit --> CI build triggered
B makes a commit --> CI build triggered
A now starts the CarConfigurator release pipeline
Result:
Since the last commit was for project BikeConfigurator, the changes made by developer A are not in the output of the BuildPipeline and the release for CarConfigurator therefore corresponds to the old status.
Question:
How can I ensure that the CarConfigurator release pipeline always publishes the latest commit for a CarConfigurator feature? Is there an alternative to creating a DEV branch, always merging features into it and then make the release pipelines publish from DEV?