1. Packages
  2. Ibm Provider
  3. API Docs
  4. CodeEngineBuild
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.CodeEngineBuild

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete code_engine_builds with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const codeEngineBuildInstance = new ibm.CodeEngineBuild("codeEngineBuildInstance", {
        projectId: ibm_code_engine_project.code_engine_project_instance.project_id,
        outputImage: "private.de.icr.io/icr_namespace/image-name",
        outputSecret: "ce-auto-icr-private-eu-de",
        sourceUrl: "https://github.com/IBM/CodeEngine",
        strategyType: "dockerfile",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_build_instance = ibm.CodeEngineBuild("codeEngineBuildInstance",
        project_id=ibm_code_engine_project["code_engine_project_instance"]["project_id"],
        output_image="private.de.icr.io/icr_namespace/image-name",
        output_secret="ce-auto-icr-private-eu-de",
        source_url="https://github.com/IBM/CodeEngine",
        strategy_type="dockerfile")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewCodeEngineBuild(ctx, "codeEngineBuildInstance", &ibm.CodeEngineBuildArgs{
    			ProjectId:    pulumi.Any(ibm_code_engine_project.Code_engine_project_instance.Project_id),
    			OutputImage:  pulumi.String("private.de.icr.io/icr_namespace/image-name"),
    			OutputSecret: pulumi.String("ce-auto-icr-private-eu-de"),
    			SourceUrl:    pulumi.String("https://github.com/IBM/CodeEngine"),
    			StrategyType: pulumi.String("dockerfile"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var codeEngineBuildInstance = new Ibm.CodeEngineBuild("codeEngineBuildInstance", new()
        {
            ProjectId = ibm_code_engine_project.Code_engine_project_instance.Project_id,
            OutputImage = "private.de.icr.io/icr_namespace/image-name",
            OutputSecret = "ce-auto-icr-private-eu-de",
            SourceUrl = "https://github.com/IBM/CodeEngine",
            StrategyType = "dockerfile",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CodeEngineBuild;
    import com.pulumi.ibm.CodeEngineBuildArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var codeEngineBuildInstance = new CodeEngineBuild("codeEngineBuildInstance", CodeEngineBuildArgs.builder()
                .projectId(ibm_code_engine_project.code_engine_project_instance().project_id())
                .outputImage("private.de.icr.io/icr_namespace/image-name")
                .outputSecret("ce-auto-icr-private-eu-de")
                .sourceUrl("https://github.com/IBM/CodeEngine")
                .strategyType("dockerfile")
                .build());
    
        }
    }
    
    resources:
      codeEngineBuildInstance:
        type: ibm:CodeEngineBuild
        properties:
          projectId: ${ibm_code_engine_project.code_engine_project_instance.project_id}
          outputImage: private.de.icr.io/icr_namespace/image-name
          outputSecret: ce-auto-icr-private-eu-de
          sourceUrl: https://github.com/IBM/CodeEngine
          strategyType: dockerfile
    

    Create CodeEngineBuild Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CodeEngineBuild(name: string, args: CodeEngineBuildArgs, opts?: CustomResourceOptions);
    @overload
    def CodeEngineBuild(resource_name: str,
                        args: CodeEngineBuildArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeEngineBuild(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_id: Optional[str] = None,
                        strategy_type: Optional[str] = None,
                        output_image: Optional[str] = None,
                        output_secret: Optional[str] = None,
                        source_revision: Optional[str] = None,
                        source_context_dir: Optional[str] = None,
                        code_engine_build_id: Optional[str] = None,
                        source_secret: Optional[str] = None,
                        source_type: Optional[str] = None,
                        source_url: Optional[str] = None,
                        strategy_size: Optional[str] = None,
                        strategy_spec_file: Optional[str] = None,
                        name: Optional[str] = None,
                        timeout: Optional[float] = None)
    func NewCodeEngineBuild(ctx *Context, name string, args CodeEngineBuildArgs, opts ...ResourceOption) (*CodeEngineBuild, error)
    public CodeEngineBuild(string name, CodeEngineBuildArgs args, CustomResourceOptions? opts = null)
    public CodeEngineBuild(String name, CodeEngineBuildArgs args)
    public CodeEngineBuild(String name, CodeEngineBuildArgs args, CustomResourceOptions options)
    
    type: ibm:CodeEngineBuild
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CodeEngineBuildArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CodeEngineBuildArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CodeEngineBuildArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeEngineBuildArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeEngineBuildArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var codeEngineBuildResource = new Ibm.CodeEngineBuild("codeEngineBuildResource", new()
    {
        ProjectId = "string",
        StrategyType = "string",
        OutputImage = "string",
        OutputSecret = "string",
        SourceRevision = "string",
        SourceContextDir = "string",
        CodeEngineBuildId = "string",
        SourceSecret = "string",
        SourceType = "string",
        SourceUrl = "string",
        StrategySize = "string",
        StrategySpecFile = "string",
        Name = "string",
        Timeout = 0,
    });
    
    example, err := ibm.NewCodeEngineBuild(ctx, "codeEngineBuildResource", &ibm.CodeEngineBuildArgs{
    	ProjectId:         pulumi.String("string"),
    	StrategyType:      pulumi.String("string"),
    	OutputImage:       pulumi.String("string"),
    	OutputSecret:      pulumi.String("string"),
    	SourceRevision:    pulumi.String("string"),
    	SourceContextDir:  pulumi.String("string"),
    	CodeEngineBuildId: pulumi.String("string"),
    	SourceSecret:      pulumi.String("string"),
    	SourceType:        pulumi.String("string"),
    	SourceUrl:         pulumi.String("string"),
    	StrategySize:      pulumi.String("string"),
    	StrategySpecFile:  pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Timeout:           pulumi.Float64(0),
    })
    
    var codeEngineBuildResource = new CodeEngineBuild("codeEngineBuildResource", CodeEngineBuildArgs.builder()
        .projectId("string")
        .strategyType("string")
        .outputImage("string")
        .outputSecret("string")
        .sourceRevision("string")
        .sourceContextDir("string")
        .codeEngineBuildId("string")
        .sourceSecret("string")
        .sourceType("string")
        .sourceUrl("string")
        .strategySize("string")
        .strategySpecFile("string")
        .name("string")
        .timeout(0)
        .build());
    
    code_engine_build_resource = ibm.CodeEngineBuild("codeEngineBuildResource",
        project_id="string",
        strategy_type="string",
        output_image="string",
        output_secret="string",
        source_revision="string",
        source_context_dir="string",
        code_engine_build_id="string",
        source_secret="string",
        source_type="string",
        source_url="string",
        strategy_size="string",
        strategy_spec_file="string",
        name="string",
        timeout=0)
    
    const codeEngineBuildResource = new ibm.CodeEngineBuild("codeEngineBuildResource", {
        projectId: "string",
        strategyType: "string",
        outputImage: "string",
        outputSecret: "string",
        sourceRevision: "string",
        sourceContextDir: "string",
        codeEngineBuildId: "string",
        sourceSecret: "string",
        sourceType: "string",
        sourceUrl: "string",
        strategySize: "string",
        strategySpecFile: "string",
        name: "string",
        timeout: 0,
    });
    
    type: ibm:CodeEngineBuild
    properties:
        codeEngineBuildId: string
        name: string
        outputImage: string
        outputSecret: string
        projectId: string
        sourceContextDir: string
        sourceRevision: string
        sourceSecret: string
        sourceType: string
        sourceUrl: string
        strategySize: string
        strategySpecFile: string
        strategyType: string
        timeout: 0
    

    CodeEngineBuild Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CodeEngineBuild resource accepts the following input properties:

    OutputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    OutputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    StrategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    CodeEngineBuildId string
    The unique identifier of the code_engine_build.
    Name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    SourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    SourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    SourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    SourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    SourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    StrategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    StrategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    Timeout double
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    OutputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    OutputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    StrategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    CodeEngineBuildId string
    The unique identifier of the code_engine_build.
    Name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    SourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    SourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    SourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    SourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    SourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    StrategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    StrategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    Timeout float64
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    outputImage String
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret String
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    strategyType String
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    codeEngineBuildId String
    The unique identifier of the code_engine_build.
    name String
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    sourceContextDir String
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision String
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret String
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType String
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl String
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    strategySize String
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile String
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    timeout Double
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    outputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    strategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    codeEngineBuildId string
    The unique identifier of the code_engine_build.
    name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    sourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    strategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    timeout number
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    output_image str
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    output_secret str
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    strategy_type str
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    code_engine_build_id str
    The unique identifier of the code_engine_build.
    name str
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    source_context_dir str
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    source_revision str
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    source_secret str
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    source_type str
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    source_url str
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    strategy_size str
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategy_spec_file str
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    timeout float
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    outputImage String
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret String
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    strategyType String
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    codeEngineBuildId String
    The unique identifier of the code_engine_build.
    name String
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    sourceContextDir String
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision String
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret String
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType String
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl String
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    strategySize String
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile String
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    timeout Number
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CodeEngineBuild resource produces the following output properties:

    BuildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_build.
    Href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    Status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    StatusDetails List<CodeEngineBuildStatusDetail>
    (List) The detailed status of the build. Nested schema for status_details:
    BuildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_build.
    Href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    Status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    StatusDetails []CodeEngineBuildStatusDetail
    (List) The detailed status of the build. Nested schema for status_details:
    buildId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_build.
    href String
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    status String
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails List<CodeEngineBuildStatusDetail>
    (List) The detailed status of the build. Nested schema for status_details:
    buildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt string
    (String) The timestamp when the resource was created.
    entityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_build.
    href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails CodeEngineBuildStatusDetail[]
    (List) The detailed status of the build. Nested schema for status_details:
    build_id str
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    created_at str
    (String) The timestamp when the resource was created.
    entity_tag str
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_build.
    href str
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    status str
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    status_details Sequence[CodeEngineBuildStatusDetail]
    (List) The detailed status of the build. Nested schema for status_details:
    buildId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_build.
    href String
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    status String
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails List<Property Map>
    (List) The detailed status of the build. Nested schema for status_details:

    Look up Existing CodeEngineBuild Resource

    Get an existing CodeEngineBuild resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CodeEngineBuildState, opts?: CustomResourceOptions): CodeEngineBuild
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            build_id: Optional[str] = None,
            code_engine_build_id: Optional[str] = None,
            created_at: Optional[str] = None,
            entity_tag: Optional[str] = None,
            etag: Optional[str] = None,
            href: Optional[str] = None,
            name: Optional[str] = None,
            output_image: Optional[str] = None,
            output_secret: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_type: Optional[str] = None,
            source_context_dir: Optional[str] = None,
            source_revision: Optional[str] = None,
            source_secret: Optional[str] = None,
            source_type: Optional[str] = None,
            source_url: Optional[str] = None,
            status: Optional[str] = None,
            status_details: Optional[Sequence[CodeEngineBuildStatusDetailArgs]] = None,
            strategy_size: Optional[str] = None,
            strategy_spec_file: Optional[str] = None,
            strategy_type: Optional[str] = None,
            timeout: Optional[float] = None) -> CodeEngineBuild
    func GetCodeEngineBuild(ctx *Context, name string, id IDInput, state *CodeEngineBuildState, opts ...ResourceOption) (*CodeEngineBuild, error)
    public static CodeEngineBuild Get(string name, Input<string> id, CodeEngineBuildState? state, CustomResourceOptions? opts = null)
    public static CodeEngineBuild get(String name, Output<String> id, CodeEngineBuildState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CodeEngineBuild    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BuildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CodeEngineBuildId string
    The unique identifier of the code_engine_build.
    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_build.
    Href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    OutputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    OutputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    SourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    SourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    SourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    SourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    SourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    Status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    StatusDetails List<CodeEngineBuildStatusDetail>
    (List) The detailed status of the build. Nested schema for status_details:
    StrategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    StrategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    StrategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    Timeout double
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    BuildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CodeEngineBuildId string
    The unique identifier of the code_engine_build.
    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_build.
    Href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    OutputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    OutputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    SourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    SourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    SourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    SourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    SourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    Status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    StatusDetails []CodeEngineBuildStatusDetailArgs
    (List) The detailed status of the build. Nested schema for status_details:
    StrategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    StrategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    StrategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    Timeout float64
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    buildId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    codeEngineBuildId String
    The unique identifier of the code_engine_build.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_build.
    href String
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name String
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    outputImage String
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret String
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    sourceContextDir String
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision String
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret String
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType String
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl String
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    status String
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails List<CodeEngineBuildStatusDetail>
    (List) The detailed status of the build. Nested schema for status_details:
    strategySize String
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile String
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    strategyType String
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    timeout Double
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    buildId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    codeEngineBuildId string
    The unique identifier of the code_engine_build.
    createdAt string
    (String) The timestamp when the resource was created.
    entityTag string
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_build.
    href string
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name string
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    outputImage string
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret string
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    sourceContextDir string
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision string
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret string
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType string
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl string
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    status string
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails CodeEngineBuildStatusDetail[]
    (List) The detailed status of the build. Nested schema for status_details:
    strategySize string
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile string
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    strategyType string
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    timeout number
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    build_id str
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    code_engine_build_id str
    The unique identifier of the code_engine_build.
    created_at str
    (String) The timestamp when the resource was created.
    entity_tag str
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_build.
    href str
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name str
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    output_image str
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    output_secret str
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    source_context_dir str
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    source_revision str
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    source_secret str
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    source_type str
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    source_url str
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    status str
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    status_details Sequence[CodeEngineBuildStatusDetailArgs]
    (List) The detailed status of the build. Nested schema for status_details:
    strategy_size str
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategy_spec_file str
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    strategy_type str
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    timeout float
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.
    buildId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    codeEngineBuildId String
    The unique identifier of the code_engine_build.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the build instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_build.
    href String
    (String) When you provision a new build, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name String
    The name of the build.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
    outputImage String
    The name of the image.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/.
    outputSecret String
    The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the build.

    • Constraints: Allowable values are: build_v2.
    sourceContextDir String
    Optional directory in the repository that contains the buildpacks file or the Dockerfile.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^(.*)+$/.
    sourceRevision String
    Commit, tag, or branch in the source repository to pull. This field is optional if the source_type is git and uses the HEAD of default branch if not specified. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[\\S]*$/.
    sourceSecret String
    Name of the secret that is used access the repository source. This field is optional if the source_type is git. Additionally, if the source_url points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the source_type value is local, this field must be omitted.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    sourceType String
    Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.

    • Constraints: The default value is git. Allowable values are: local, git.
    sourceUrl String
    The URL of the code repository. This field is required if the source_type is git. If the source_type value is local, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like https://github.com/IBM/CodeEngine. If the repository requires authentication, you need to provide a 'ssh' URL like git@github.com:IBM/CodeEngine.git along with a source_secret that points to a secret of format ssh_auth.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^((https:\/\/a-z0-9+(:\\d{1,5})?)|((ssh:\/\/)?git@a-z0-9+(:[a-zA-Z0-9\/][\\w\\-.]*)?))(\/([\\w\\-.]|%20)+)*$/.
    status String
    (String) The current status of the build.

    • Constraints: Allowable values are: ready, failed.
    statusDetails List<Property Map>
    (List) The detailed status of the build. Nested schema for status_details:
    strategySize String
    Optional size for the build, which determines the amount of resources used. Build sizes are small, medium, large, xlarge, xxlarge.

    • Constraints: The default value is medium. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    strategySpecFile String
    Optional path to the specification file that is used for build strategies for building an image.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]*$/.
    strategyType String
    The strategy to use for building the image.

    • Constraints: The default value is dockerfile. The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /[\\S]*/.
    timeout Number
    The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

    • Constraints: The default value is 600. The maximum value is 3600. The minimum value is 1.

    Supporting Types

    CodeEngineBuildStatusDetail, CodeEngineBuildStatusDetailArgs

    Reason string
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.
    Reason string
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.
    reason String
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.
    reason string
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.
    reason str
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.
    reason String
    (String) Optional information to provide more context in case of a 'failed' or 'warning' status.

    • Constraints: Allowable values are: registered, strategy_not_found, cluster_build_strategy_not_found, set_owner_reference_failed, spec_source_secret_not_found, spec_output_secret_ref_not_found, spec_runtime_secret_ref_not_found, multiple_secret_ref_not_found, runtime_paths_can_not_be_empty, remote_repository_unreachable, failed.

    Import

    You can import the ibm_code_engine_build resource by using name.

    The name property can be formed from project_id, and name in the following format:

    
    <project_id>/<name>
    
    
    • project_id: A string in the format 15314cc3-85b4-4338-903f-c28cdee6d005. The ID of the project.

    • name: A string in the format my-build. The name of the build.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/codeEngineBuild:CodeEngineBuild code_engine_build <project_id>/<name>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud