| title | steps.getPackage definition |
|---|---|
| description | Downloads a package from a package management feed in Azure Artifacts or Azure DevOps Server. |
| ms.date | 04/02/2026 |
| monikerRange | <=azure-pipelines |
| author | ramiMSFT |
| ms.author | rabououn |
:::moniker range="<=azure-pipelines"
The getPackage step downloads a package from a package management feed in Azure Artifacts or Azure DevOps Server.
:::moniker-end
:::moniker range="<=azure-pipelines"
steps:
- getPackage: string # Required as first property. Alias of the package resource.
path: string # Path to download the package into.
condition: string # Evaluate this condition expression to determine whether to run this task.
continueOnError: boolean # Continue running even on failure?
displayName: string # Human-readable name for the task.
target: string | target # Environment in which to run this task.
enabled: boolean # Run this task when the job runs?
env: # Variables to map into the process's environment.
string: string # Name/value pairs
name: string # ID of the step.
timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.
retryCountOnTaskFailure: string # Number of retries if the task fails.:::moniker-end
:::moniker range="<=azure-pipelines"
Definitions that reference this definition: steps
:::moniker-end
:::moniker range="<=azure-pipelines"
getPackage string. Required as first property.
ID for the package resource.
:::moniker-end
:::moniker range="<=azure-pipelines"
path string.
Path to download the package into.
:::moniker-end
:::moniker range="<=azure-pipelines"
condition string.
Evaluate this condition expression to determine whether to run this task.
:::moniker-end
:::moniker range="<=azure-pipelines"
continueOnError boolean.
Continue running even on failure?
:::moniker-end
:::moniker range="<=azure-pipelines"
displayName string.
Human-readable name for the task.
:::moniker-end
:::moniker range="<=azure-pipelines"
target target.
Environment in which to run this task.
:::moniker-end
:::moniker range="<=azure-pipelines"
enabled boolean.
Run this task when the job runs?
:::moniker-end
:::moniker range="<=azure-pipelines"
env string dictionary.
Variables to map into the process's environment.
:::moniker-end
:::moniker range="<=azure-pipelines"
name string.
ID of the step. Acceptable values: [-_A-Za-z0-9]*.
:::moniker-end
:::moniker range="<=azure-pipelines"
timeoutInMinutes string.
Time to wait for this task to complete before the server kills it.
[!INCLUDE task-timeout]
:::moniker-end
:::moniker range="<=azure-pipelines"
retryCountOnTaskFailure string.
Number of retries if the task fails.
:::moniker-end
The getPackage keyword is a shortcut for the Download Package task.