Replies: 1 comment 5 replies
-
Are you running the task in Multistage YAML or within a Classic Release? - I ask as the discovery logic is different. I would actually suggest building you release notes for each of your 14 projects as part of their build stages, and publish them as build artifacts, or to WIKI, and then consume them as a set for publishing during a release. Trying to handle all the changes as part of the release phase rarely gives the results required |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
we have an ado release pipeline and I added a task to Generate Release Notes (Crossplatform). For this release pipeline we have 14 build artifacts associated with it. when i ran release pipeline for first time it shows all the modified work items and PRs which are changed which looks good. but when there is a change in one particular build I created a new release and queued, now i can see new release notes created which contains the worktimes and prs which are not touched from previous build. to cross check, i compared the build artifact in both releases which contains same id.
below is the script which i used in my release pipeline.
please suggest me how to get only delta changes from previous release to current release if there is a change in only particular build artifact. remaining un changed should be ignored
Notes for release {{releaseDetails.releaseDefinition.name}}
Release Number : {{releaseDetails.name}}
Compared Release Number : {{compareReleaseDetails.name}}
Associated Pull Requests
{{#forEach pullRequests}}
{{#if isFirst}} {{/if}}
{{/forEach}}
Associated Epics
{{#if this.relatedWorkItems}}
{{#forEach this.relatedWorkItems}}
{{#if (eq this.fields.[System.WorkItemType] 'Epic')}}
{{/if}}
{{/forEach}}
{{else}}
None
{{/if}}
Associated Features
{{#if this.relatedWorkItems}}
{{#forEach this.relatedWorkItems}}
{{#if (eq this.fields.[System.WorkItemType] 'Feature')}}
{{/if}}
{{/forEach}}
{{else}}
None
{{/if}}
Associated Requirements
{{#if this.relatedWorkItems}}
{{#forEach this.relatedWorkItems}}
{{#if (eq this.fields.[System.WorkItemType] 'Requirement')}}
{{/if}}
{{/forEach}}
{{else}}
None
{{/if}}
Associated Bugfixes
{{#if this.relatedWorkItems}}
{{#forEach this.relatedWorkItems}}
{{#if (eq this.fields.[System.WorkItemType] 'Bug')}}
{{/if}}
{{/forEach}}
{{else}}
None
{{/if}}
Associated WI with PRs, parents and children
{{#forEach this.workItems}}
{{#if isFirst}}### WorkItems {{/if}}
{{this.id}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Pull Request')}}
{{#with (lookup_a_pullrequest ../../pullRequests this.url)}}
{{/with}}
{{/if}}
{{/forEach}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../relatedWorkItems this.url)}}
#{{this.id}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../../../relatedWorkItems this.url)}}
#{{this.id}}
{{/with}}
{{/if}}
{{/forEach}}
{{/with}}
{{/if}}
{{/forEach}}
{{/forEach}}
Beta Was this translation helpful? Give feedback.
All reactions