Skip to content

Update-ReleaseDefinition for classic release pipelines in Azure DevOps erases past releases #575

@sreich

Description

@sreich

Steps to reproduce

vsteam 7.15.2

I am uncertain on how to debug and where the problem may lie, but what I am experiencing is that classic release pipeline updates via Update-ReleaseDefinition, past releases get wiped out so it looks like it has no history

I am uncertain what azdo's rules are here. But it does not seem to happen immediately. It happens after like...a day? a few days, maybe a week? Not within 24 hours.

Has anyone experienced this? I can share full scripts and try to get a minimal test case... but I would like if this is known as an issue, if I did something clearly wrong...or if it was fixed in later versions. Perhaps I am using the api wrong and missing something, as I do hand-edit (programmatically) the json, changing the fields I need and re-sending

I have observed that azdo is not the smartest when it comes to ensuring validity in their api

I just am really surprised it goes from having the past releases to...after 24 hours or so, disappearing past release histories...

Expected behavior

I expected that...the azure release pipeline updates for classic pipelines, via Update-ReleaseDefinition, would not wipe out past deployment history, that's what I'm looking to get fixed here

Actual behavior?

After the run of the script command, the pipelines' past releases (history) get erased and are no longer accessible.

On Which OS have you tried it?

No response

What was your server version?

No response

Other server version

No response

Log output of used API

PowerShell-7.4.3-win-x64> Get-VSTeamAPIVersion

Billing                     :
Build                       : 3.0
Core                        : 3.0
DistributedTask             : 3.0-preview
DistributedTaskReleased     :
ExtensionsManagement        : 3.0-preview
Git                         : 3.0
Graph                       :
HierarchyQuery              :
MemberEntitlementManagement :
Packaging                   : 3.0-preview
Pipelines                   :
Policy                      : 3.0
Processes                   :
Release                     : 3.0-preview
ServiceEndpoints            : 3.0-preview
TaskGroups                  : 3.0-preview
Tfvc                        : 3.0
VariableGroups              :
Version                     : TFS2017
Wiki                        :
WorkItemTracking            : 3.0

Log output of $PSVersionTable

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwhen a bug has been identified or filed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions