Triggering a Build Run
In Oracle Cloud Infrastructure (OCI) DevOps, a build run can be automatically triggered when you commit your changes to a code repository.
In the DevOps service, you can create your own private code repositories or connect to external code repositories and trigger the build. For more information, see Creating an External Connection.
You can control the trigger action by specifying the modified files in your repository to be included or excluded during the build run. The file based trigger action is applicable only for the Push event.
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.
To create an OCI code repository trigger, run the
create-devops-code-repo-triggercommand:oci devops trigger create-devops-code-repo-trigger --actions, --project-idTo create a GitHub trigger, run the
create-github-triggercommand:oci devops trigger create-github-trigger --actions, --project-idTo create a GitLab trigger, run the
create-gitlab-triggercommand:oci devops trigger create-gitlab-trigger --actions, --project-idTo create a Bitbucket Cloud trigger, run the
create-bitbucket-cloud-triggercommand:oci devops trigger create-bitbucket-cloud-trigger --actions, --project-idTo create a Visual Builder Studio trigger, run the
create-vbs-triggercommand:oci devops trigger create-vbs-trigger --actions, --project-idTo create a Bitbucket Server trigger, run the
create-bitbucket-server-triggercommand:oci devops trigger create-bitbucket-server-trigger --actions, --project-idTo create a GitLab Server trigger, run the
create-gitlab-server-triggercommand:oci devops trigger create-gitlab-server-trigger --actions, --project-idTo get all the commands for
trigger:oci devops trigger -hTo create a trigger, use the
CreateTriggeroperation.