oci_devops_build_run

This resource provides the Build Run resource in Oracle Cloud Infrastructure Devops service.

Starts a build pipeline run for a predefined build pipeline. Please ensure the completion of any work request for creation/updation of Build Pipeline before starting a Build Run.

Example Usage

resource "oci_devops_build_run" "test_build_run" {
	#Required
	build_pipeline_id = oci_devops_build_pipeline.test_build_pipeline.id

	#Optional
	build_run_arguments {
		#Required
		items {
			#Required
			name = var.build_run_build_run_arguments_items_name
			value = var.build_run_build_run_arguments_items_value
		}
	}
	commit_info {
		#Required
		commit_hash = var.build_run_commit_info_commit_hash
		repository_branch = var.build_run_commit_info_repository_branch
		repository_url = var.build_run_commit_info_repository_url
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.build_run_display_name
	freeform_tags = {"bar-key"= "value"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Build Run * update - (Defaults to 20 minutes), when updating the Build Run * delete - (Defaults to 20 minutes), when destroying the Build Run

Import

BuildRuns can be imported using the id, e.g.

$ terraform import oci_devops_build_run.test_build_run "id"