Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class BaseImageTrigger {
private BaseImageTriggerType baseImageTriggerType;

/**
* The current status of build trigger. Possible values include:
* 'Disabled', 'Enabled'.
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
*/
@JsonProperty(value = "status")
private TriggerStatus status;
Expand Down Expand Up @@ -55,7 +55,7 @@ public BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageT
}

/**
* Get the current status of build trigger. Possible values include: 'Disabled', 'Enabled'.
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @return the status value
*/
Expand All @@ -64,7 +64,7 @@ public TriggerStatus status() {
}

/**
* Set the current status of build trigger. Possible values include: 'Disabled', 'Enabled'.
* Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @param status the status value to set
* @return the BaseImageTrigger object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class BaseImageTriggerUpdateParameters {
private BaseImageTriggerType baseImageTriggerType;

/**
* The current status of build trigger. Possible values include:
* 'Disabled', 'Enabled'.
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
*/
@JsonProperty(value = "status")
private TriggerStatus status;
Expand Down Expand Up @@ -55,7 +55,7 @@ public BaseImageTriggerUpdateParameters withBaseImageTriggerType(BaseImageTrigge
}

/**
* Get the current status of build trigger. Possible values include: 'Disabled', 'Enabled'.
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @return the status value
*/
Expand All @@ -64,7 +64,7 @@ public TriggerStatus status() {
}

/**
* Set the current status of build trigger. Possible values include: 'Disabled', 'Enabled'.
* Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @param status the status value to set
* @return the BaseImageTriggerUpdateParameters object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,32 @@ public class DockerBuildRequest extends RunRequest {
private List<Argument> arguments;

/**
* The URL(absolute or relative) of the source that needs to be built. For
* Docker build, it can be an URL to a tar or github repoistory as
* supported by Docker.
* If it is relative URL, the relative path should be obtained from calling
* getSourceUploadUrl API.
*/
@JsonProperty(value = "sourceLocation", required = true)
private String sourceLocation;

/**
* Build timeout in seconds.
* Run timeout in seconds.
*/
@JsonProperty(value = "timeout")
private Integer timeout;

/**
* The platform properties against which the build will happen.
* The platform properties against which the run has to happen.
*/
@JsonProperty(value = "platform", required = true)
private PlatformProperties platform;

/**
* The machine configuration of the build agent.
* The machine configuration of the run agent.
*/
@JsonProperty(value = "agentConfiguration")
private AgentProperties agentConfiguration;

/**
* The URL(absolute or relative) of the source context. It can be an URL to
* a tar or git repoistory.
* If it is relative URL, the relative path should be obtained from calling
* listBuildSourceUploadUrl API.
*/
@JsonProperty(value = "sourceLocation")
private String sourceLocation;

/**
* Get the fully qualified image names including the repository and tag.
*
Expand Down Expand Up @@ -180,29 +179,7 @@ public DockerBuildRequest withArguments(List<Argument> arguments) {
}

/**
* Get the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker.
If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.
*
* @return the sourceLocation value
*/
public String sourceLocation() {
return this.sourceLocation;
}

/**
* Set the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker.
If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.
*
* @param sourceLocation the sourceLocation value to set
* @return the DockerBuildRequest object itself.
*/
public DockerBuildRequest withSourceLocation(String sourceLocation) {
this.sourceLocation = sourceLocation;
return this;
}

/**
* Get build timeout in seconds.
* Get run timeout in seconds.
*
* @return the timeout value
*/
Expand All @@ -211,7 +188,7 @@ public Integer timeout() {
}

/**
* Set build timeout in seconds.
* Set run timeout in seconds.
*
* @param timeout the timeout value to set
* @return the DockerBuildRequest object itself.
Expand All @@ -222,7 +199,7 @@ public DockerBuildRequest withTimeout(Integer timeout) {
}

/**
* Get the platform properties against which the build will happen.
* Get the platform properties against which the run has to happen.
*
* @return the platform value
*/
Expand All @@ -231,7 +208,7 @@ public PlatformProperties platform() {
}

/**
* Set the platform properties against which the build will happen.
* Set the platform properties against which the run has to happen.
*
* @param platform the platform value to set
* @return the DockerBuildRequest object itself.
Expand All @@ -242,7 +219,7 @@ public DockerBuildRequest withPlatform(PlatformProperties platform) {
}

/**
* Get the machine configuration of the build agent.
* Get the machine configuration of the run agent.
*
* @return the agentConfiguration value
*/
Expand All @@ -251,7 +228,7 @@ public AgentProperties agentConfiguration() {
}

/**
* Set the machine configuration of the build agent.
* Set the machine configuration of the run agent.
*
* @param agentConfiguration the agentConfiguration value to set
* @return the DockerBuildRequest object itself.
Expand All @@ -261,4 +238,26 @@ public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfigurat
return this;
}

/**
* Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @return the sourceLocation value
*/
public String sourceLocation() {
return this.sourceLocation;
}

/**
* Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @param sourceLocation the sourceLocation value to set
* @return the DockerBuildRequest object itself.
*/
public DockerBuildRequest withSourceLocation(String sourceLocation) {
this.sourceLocation = sourceLocation;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ public class DockerBuildStep extends TaskStepProperties {
@JsonProperty(value = "arguments")
private List<Argument> arguments;

/**
* The URL(absolute or relative) of the source context for the build task.
* If it is relative, the context will be relative to the source repository
* URL of the build task.
*/
@JsonProperty(value = "contextPath")
private String contextPath;

/**
* Get the fully qualified image names including the repository and tag.
*
Expand Down Expand Up @@ -160,26 +152,4 @@ public DockerBuildStep withArguments(List<Argument> arguments) {
return this;
}

/**
* Get the URL(absolute or relative) of the source context for the build task.
If it is relative, the context will be relative to the source repository URL of the build task.
*
* @return the contextPath value
*/
public String contextPath() {
return this.contextPath;
}

/**
* Set the URL(absolute or relative) of the source context for the build task.
If it is relative, the context will be relative to the source repository URL of the build task.
*
* @param contextPath the contextPath value to set
* @return the DockerBuildStep object itself.
*/
public DockerBuildStep withContextPath(String contextPath) {
this.contextPath = contextPath;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ public class DockerBuildStepUpdateParameters extends TaskStepUpdateParameters {
@JsonProperty(value = "arguments")
private List<Argument> arguments;

/**
* The URL(absolute or relative) of the source context for the build task.
* If it is relative, the context will be relative to the source repository
* URL of the build task.
*/
@JsonProperty(value = "contextPath")
private String contextPath;

/**
* Get the fully qualified image names including the repository and tag.
*
Expand Down Expand Up @@ -160,26 +152,4 @@ public DockerBuildStepUpdateParameters withArguments(List<Argument> arguments) {
return this;
}

/**
* Get the URL(absolute or relative) of the source context for the build task.
If it is relative, the context will be relative to the source repository URL of the build task.
*
* @return the contextPath value
*/
public String contextPath() {
return this.contextPath;
}

/**
* Set the URL(absolute or relative) of the source context for the build task.
If it is relative, the context will be relative to the source repository URL of the build task.
*
* @param contextPath the contextPath value to set
* @return the DockerBuildStepUpdateParameters object itself.
*/
public DockerBuildStepUpdateParameters withContextPath(String contextPath) {
this.contextPath = contextPath;
return this;
}

}
Loading