Triggering a Build Run
In OCI DevOps, a build run can be automatically triggered when you commit your changes to a code repository.
Before creating a trigger in DevOps, you must have a DevOps project, a build pipeline, and a code repository associated with the project.
To run a build manually, see Running a Build.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
Using the Console
Using the CLI
To create an OCI code repository trigger, run the create-devops-code-repo-trigger
command:
oci devops trigger create-devops-code-repo-trigger --actions, --project-id
To create a GitHub trigger, run the create-github-trigger
command:
oci devops trigger create-github-trigger --actions, --project-id
To create a GitLab trigger, run the create-gitlab-trigger
command:
oci devops trigger create-gitlab-trigger --actions, --project-id
To create a Bitbucket Cloud trigger, run the create-bitbucket-cloud-trigger
command:
oci devops trigger create-bitbucket-cloud-trigger --actions, --project-id
To get all the commands for trigger
:
oci devops trigger -h
Using the API
To create a trigger, use the CreateTrigger
operation.