Package org.azd.helpers.build
Class BuildHelpersRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.BuildBaseRequestBuilder
org.azd.helpers.build.BuildHelpersRequestBuilder
Helper request builder that combines multiple Apis to create logical helper methods for ease of use.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionBuildHelpersRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncloneBuildDefinition
(String definitionName, String definitionCloneName) Clone an existing definition/pipelineMethods inherited from class org.azd.build.BuildBaseRequestBuilder
artifacts, attachments, authorizedResources, builds, controllers, definitions, folders, sourceProviders, stages, tags, timeline, yaml
Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
BuildHelpersRequestBuilder
public BuildHelpersRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
cloneBuildDefinition
public BuildDefinition cloneBuildDefinition(String definitionName, String definitionCloneName) throws AzDException Clone an existing definition/pipeline- Parameters:
definitionName
- Name of the build definition/pipeline. E.g., WebApp-Deployment-CIdefinitionCloneName
- Name of the pipeline/definition to be created or cloned. E.g., WebApp-Deployment-CI-Copy- Returns:
- build definition
BuildDefinition
- Throws:
AzDException
- Default Api Exception handler.
-