BuildRun¶
-
class
oci.devops.models.
BuildRun
(**kwargs)¶ Bases:
object
Each time you attempt to run a build pipeline you create one build run. A build can be running currently, or it can be a record of the run that happened in the past. The set of build runs constitutes a build pipeline’s history.
Attributes
LIFECYCLE_STATE_ACCEPTED
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_CANCELED
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_CANCELING
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_IN_PROGRESS
A constant which can be used with the lifecycle_state property of a BuildRun. LIFECYCLE_STATE_SUCCEEDED
A constant which can be used with the lifecycle_state property of a BuildRun. build_outputs
Gets the build_outputs of this BuildRun. build_pipeline_id
Gets the build_pipeline_id of this BuildRun. build_run_arguments
Gets the build_run_arguments of this BuildRun. build_run_progress
Gets the build_run_progress of this BuildRun. build_run_source
[Required] Gets the build_run_source of this BuildRun. commit_info
Gets the commit_info of this BuildRun. compartment_id
Gets the compartment_id of this BuildRun. defined_tags
Gets the defined_tags of this BuildRun. display_name
Gets the display_name of this BuildRun. freeform_tags
Gets the freeform_tags of this BuildRun. id
[Required] Gets the id of this BuildRun. lifecycle_details
Gets the lifecycle_details of this BuildRun. lifecycle_state
Gets the lifecycle_state of this BuildRun. project_id
Gets the project_id of this BuildRun. system_tags
Gets the system_tags of this BuildRun. time_created
Gets the time_created of this BuildRun. time_updated
Gets the time_updated of this BuildRun. Methods
__init__
(**kwargs)Initializes a new BuildRun object with values from keyword arguments. -
LIFECYCLE_STATE_ACCEPTED
= 'ACCEPTED'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “ACCEPTED”
-
LIFECYCLE_STATE_CANCELED
= 'CANCELED'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “CANCELED”
-
LIFECYCLE_STATE_CANCELING
= 'CANCELING'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “CANCELING”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_IN_PROGRESS
= 'IN_PROGRESS'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “IN_PROGRESS”
-
LIFECYCLE_STATE_SUCCEEDED
= 'SUCCEEDED'¶ A constant which can be used with the lifecycle_state property of a BuildRun. This constant has a value of “SUCCEEDED”
-
__init__
(**kwargs)¶ Initializes a new BuildRun object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this BuildRun.
- display_name (str) – The value to assign to the display_name property of this BuildRun.
- compartment_id (str) – The value to assign to the compartment_id property of this BuildRun.
- project_id (str) – The value to assign to the project_id property of this BuildRun.
- build_pipeline_id (str) – The value to assign to the build_pipeline_id property of this BuildRun.
- build_run_source (oci.devops.models.BuildRunSource) – The value to assign to the build_run_source property of this BuildRun.
- build_run_arguments (oci.devops.models.BuildRunArgumentCollection) – The value to assign to the build_run_arguments property of this BuildRun.
- time_created (datetime) – The value to assign to the time_created property of this BuildRun.
- time_updated (datetime) – The value to assign to the time_updated property of this BuildRun.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this BuildRun. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this BuildRun.
- build_run_progress (oci.devops.models.BuildRunProgress) – The value to assign to the build_run_progress property of this BuildRun.
- commit_info (oci.devops.models.CommitInfo) – The value to assign to the commit_info property of this BuildRun.
- build_outputs (oci.devops.models.BuildOutputs) – The value to assign to the build_outputs property of this BuildRun.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this BuildRun.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this BuildRun.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this BuildRun.
-
build_outputs
¶ Gets the build_outputs of this BuildRun.
Returns: The build_outputs of this BuildRun. Return type: oci.devops.models.BuildOutputs
-
build_pipeline_id
¶ Gets the build_pipeline_id of this BuildRun. The OCID of the build pipeline.
Returns: The build_pipeline_id of this BuildRun. Return type: str
-
build_run_arguments
¶ Gets the build_run_arguments of this BuildRun.
Returns: The build_run_arguments of this BuildRun. Return type: oci.devops.models.BuildRunArgumentCollection
-
build_run_progress
¶ Gets the build_run_progress of this BuildRun.
Returns: The build_run_progress of this BuildRun. Return type: oci.devops.models.BuildRunProgress
-
build_run_source
¶ [Required] Gets the build_run_source of this BuildRun.
Returns: The build_run_source of this BuildRun. Return type: oci.devops.models.BuildRunSource
-
commit_info
¶ Gets the commit_info of this BuildRun.
Returns: The commit_info of this BuildRun. Return type: oci.devops.models.CommitInfo
-
compartment_id
¶ Gets the compartment_id of this BuildRun. The OCID of the compartment where the build is running.
Returns: The compartment_id of this BuildRun. Return type: str
Gets the defined_tags of this BuildRun. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this BuildRun. Return type: dict(str, dict(str, object))
-
display_name
¶ Gets the display_name of this BuildRun. Build run display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
Returns: The display_name of this BuildRun. Return type: str
Gets the freeform_tags of this BuildRun. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this BuildRun. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this BuildRun. Unique identifier that is immutable on creation.
Returns: The id of this BuildRun. Return type: str
-
lifecycle_details
¶ Gets the lifecycle_details of this BuildRun. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
Returns: The lifecycle_details of this BuildRun. Return type: str
-
lifecycle_state
¶ Gets the lifecycle_state of this BuildRun. The current state of the build run.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this BuildRun. Return type: str
-
project_id
¶ Gets the project_id of this BuildRun. The OCID of the DevOps project.
Returns: The project_id of this BuildRun. Return type: str
Gets the system_tags of this BuildRun. Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this BuildRun. Return type: dict(str, dict(str, object))
-