Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Retain Run
Retain Run

Retain Run

Alex Alnaib

|
20 installs
| (0) | Free
Retains Azure DevOps pipeline run
Get it free

Retain Run

  • Overview
  • Features
  • How to use

Overview

This extension adds Retain Run task to retain the run of a Azure DevOps pipeline.

Extension Code
Extension CodeFactor

Features

The Retain Run task retains classic or YAML pipeline runs by specifying the number of days to retain.

How to use

  1. Add Retain Run task to your pipeline
  2. Specify number of days to retain
Parameter Type Required Default Value Description
days Int ✔️ 0 Number of days to retain the run

Note: specifying 0 retains the run indefinitely

Example: Retain run indefinitely

- task: RetainRun@1
  displayName: Retain Run
  inputs:
    days: 0

Example: Retain run for 20 days

- task: RetainRun@1
  displayName: Retain Run
  inputs:
    days: 20
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft