-
The very first time that GenerateReleaseNotes runs, in my Azure DevOps release pipeline, it appears to try and process EVERY commit on the entire history of the branch. The develop branch has been in use on this project for ~2 years and over 1000+ builds have successfully run during that time (CI trigger is a pull request). So there are many thousands of changes that it is looking at. I really just want the scope of my Initial Deployment to be "the last successful build that ran", not every build that ever ran. However it feels like this logic is internal to the extension, and no matter how much I fuss with config, I just can't get past this. Help! Can someone help explain why? Steps to reproduce:
My configuration:
Relevant log output from the run:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The log line
If this is the case, then what you are experiencing is the designed behaviour. The logic in this task for finding associated builds for Classic Releases is my own, as Microsoft provides no suitable APIs. This is unlike for YAML pipelines, both single and multistage, where there is a set of API calls to find the WS and CS changes between successful pipeline runs on the same branch. So I had to create my own logic, which is:
The good news is there is feature to address the problem you have. You need to add the
Hopefully that will sort your problem. Also worth considering is
See this video on how we use these tasks |
Beta Was this translation helpful? Give feedback.
-
You could put the generate release notes task in the CD build in a YAML stage such that it is only run when the PR is merged to the trunk (dev or main). So the release notes are generated as the PR is completed, not on each build of the PR branch To find the Pick the one that you want as 'the oldest to consider' and click on it You can see the ReleaseID in the URL, use this ID as the |
Beta Was this translation helpful? Give feedback.
You could put the generate release notes task in the CD build in a YAML stage such that it is only run when the PR is merged to the trunk (dev or main). So the release notes are generated as the PR is completed, not on each build of the PR branch
To find the
overrideBuildReleaseId
, look at the list of release e.g.Pick the one that you want as 'the oldest to consider' and click on it
You can see the ReleaseID in the URL, us…