Retain Run
Overview
This extension adds Retain Run task to retain the run of a Azure DevOps pipeline.
Extension |
Code |
|
|
Features
The Retain Run task retains classic or YAML pipeline runs by specifying the number of days to retain.
How to use
- Add
Retain Run task to your pipeline
- 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
| |