Phase.CreateJobContext(PhaseExecutionContext, String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the specified job using the provided execution context and name. A new execution context is returned which includes new variables set by the job.
public Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.JobExecutionContext CreateJobContext(Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.PhaseExecutionContext context, string name, int attempt);
member this.CreateJobContext : Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.PhaseExecutionContext * string * int -> Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.JobExecutionContext
Public Function CreateJobContext (context As PhaseExecutionContext, name As String, attempt As Integer) As JobExecutionContext
Parameters
- context
- PhaseExecutionContext
The execution context
- name
- String
The name of the job which should be created
- attempt
- Int32
Returns
A job and execution context if the specified name exists; otherwise, null