external help file | Module Name | online version | schema |
---|---|---|---|
Pipelines.dll-Help.xml |
Pipelines |
2.0.0 |
This Cmdlet creates an Ado Pool object
New-AdoPool [-Name] <String> [[-Demands] <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
The pool keyword specifies which pool to use for a job of the pipeline. A pool specification also holds information about the job's strategy for running.
PS C:\> New-AdoPool -Name '$(poolName)' -Demands 'Agent.Name -equals $(AgentName)'
Name Demands
---- -------
$(poolName) {Agent.Name -equals $(AgentName)}
This creates a Pool object on the Command line.
Demands and capabilities are designed for use with self-hosted agents so that jobs can be matched with an agent that meets the requirements of the job. When using Microsoft-hosted agents, you select an image for the agent that matches the requirements of the job, so although it is possible to add capabilities to a Microsoft-hosted agent, you don't need to use capabilities with Microsoft-hosted agents.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Name of a pool
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.