Skip to content

This is an extension for Azure DevOps supporting retention for Releases and Pipelines. For releases it can cascade back to Build Pipelines. Supports the new Pipeline Retain leases.

Notifications You must be signed in to change notification settings

JoostVoskuil/azure-devops-retention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retention

Set the retention of this pipeline or release run.

Pipelines

Pipeline runs works with retentionleases. The lease is set per run for a number of days but the input for this task is in number of months. After this period the run is deleted.

This also protects the pipeline for being deleted.

Releases

Releases are retained with a retain indefinitely flag. The release will never be deleted. When the option 'retainbuilds' is set to true, this also set the retention for the builds to indefinitely.

YAML Snippet

- task: Retention@1

Arguments

Name Applies to Default value Description
months Pipelines 0 (Indefinitely) Set the lease period in number of Months. After this amount, the lease is deleted. Set to 0 for indefinitely
retainbuilds Release true When set to true, this also retains the associated builds for indefinitely

Permissions for Releases

When you get the following error message running a release pipeline:

'Error: VS402904: Access denied: User does not have manage releases permission. Contact your release manager.'

Please set the 'Manage Releases' permission for this (or all release pipelines) for user ' Build Service (foxholenl)' to 'allow'

About

This is an extension for Azure DevOps supporting retention for Releases and Pipelines. For releases it can cascade back to Build Pipelines. Supports the new Pipeline Retain leases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published