public class DeploymentGroup extends Descriptor
An sample expression of it in JSON might be:
{
"name":"foo-group",
"jobId":"foo:0.1.0",
"hostSelectors":[
{
"label":"foo",
"operator":"EQUALS"
"operand":"bar",
},
{
"label":"baz",
"operator":"EQUALS"
"operand":"qux",
}
],
"rolloutOptions":{
"migrate":false,
"parallelism":2,
"timeout":1000,
"overlap":true,
"token": "insecure-access-token"
},
"rollingUpdateReason": "MANUAL"
}
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentGroup.Builder |
static class |
DeploymentGroup.RollingUpdateReason |
| Modifier and Type | Field and Description |
|---|---|
static JobId |
EMPTY_JOB_ID |
static String |
EMPTY_NAME |
| Constructor and Description |
|---|
DeploymentGroup(String name,
List<HostSelector> hostSelectors,
JobId jobId,
RolloutOptions rolloutOptions,
DeploymentGroup.RollingUpdateReason reason)
Create a Job.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<HostSelector> |
getHostSelectors() |
JobId |
getJobId() |
String |
getName() |
DeploymentGroup.RollingUpdateReason |
getRollingUpdateReason() |
RolloutOptions |
getRolloutOptions() |
int |
hashCode() |
static DeploymentGroup.Builder |
newBuilder() |
DeploymentGroup.Builder |
toBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic static final String EMPTY_NAME
public static final JobId EMPTY_JOB_ID
public DeploymentGroup(String name, List<HostSelector> hostSelectors, @Nullable JobId jobId, @Nullable RolloutOptions rolloutOptions, @Nullable DeploymentGroup.RollingUpdateReason reason)
Note that despite annotating jobId as @JsonProperty("job") in practice it's serialised as "jobId" because we neglected to annotate the getter to match. The annotation has been left here to ensure backwards compatibility.
name - The docker name to use.jobId - The job ID for the deployment group.hostSelectors - The selectors that determine which agents are part of the deployment
group.reason - The reason the most recent rolling update (if any) occurred.public String getName()
public JobId getJobId()
public List<HostSelector> getHostSelectors()
public RolloutOptions getRolloutOptions()
public DeploymentGroup.RollingUpdateReason getRollingUpdateReason()
public static DeploymentGroup.Builder newBuilder()
public DeploymentGroup.Builder toBuilder()
Copyright © 2017. All rights reserved.