-
Notifications
You must be signed in to change notification settings - Fork 433
BuildTasks Task YAML
Richard Fennell edited this page Oct 25, 2018
·
11 revisions
The BuildUpdating package contains the following tasks. The table show the possible variables that can be used in YAML Azure DevOps Pipeline configurations
Set Retension on a Build
# Set Retension on a Build
# Description - Set Retension on a Build
- task: BuildRetensionTask
inputs:
# Required arguments
mode: Prime
-
Argument: mode
- Description: Select the builds to update.
-
Type: pickList
- AllArtifacts
- NamedArtifacts
- Prime
- Required: True
- Default (if defined): Prime
-
Argument: artifacts
- Description: A comma separated list of artifacts
- Type: string
- Required: False
- Default (if defined):
-
Argument: keepForever
- Description: If true will set the build retension on the build
- Type: boolean
- Required: False
- Default (if defined): True
-
Argument: usedefaultcreds
- Description: If true will use the credentials of the running agent as opposed to access token provided by build service.
- Type: boolean
- Required: False
- Default (if defined): False
Set variable on a build defintion
# Set variable on a build defintion
# Description - Set variable on a build defintion
- task: BuildVariableTask
inputs:
# Required arguments
buildmode: Prime
variable:
mode: Manual
value:
-
Argument: buildmode
- Description: Select the builds to update (Used in Releases only).
-
Type: pickList
- AllArtifacts
- NamedArtifacts
- Prime
- Required: True
- Default (if defined): Prime
-
Argument: artifacts
- Description: A comma separated list of artifacts
- Type: string
- Required: False
- Default (if defined):
-
Argument: variable
- Description: The name of the build variable to update
- Type: string
- Required: True
- Default (if defined):
-
Argument: mode
- Description: Select the mode to operate in.
-
Type: pickList
- Manual
- Autoincrement
- Required: True
- Default (if defined): Manual
-
Argument: value
- Description: The value of the build variable to update
- Type: string
- Required: True
- Default (if defined):
-
Argument: usedefaultcreds
- Description: If true will use the credentials of the running agent as opposed to access token provided by build service.
- Type: boolean
- Required: False
- Default (if defined): False