DevOps Events
Oracle Cloud Infrastructure Events are JSON files that are emitted with some service operations and carry information about that operation.
You can define rules that trigger a specific action when an event occurs. For more information, see Overview of Events and Get Started with Events. DevOps emits an event for the following actions:
- A DevOps project is created, updated, or deleted.
- A deployment artifact is created, updated, or deleted.
- A code repository is created, updated, deleted, mirrored, or committed using git push command.
- A pull request is created, declined, merged, reopened, updated, patched, reviewed, or a comment created for the pull request.
- Update project setting or repository setting.
- A connection is created, updated, or deleted.
- A deployment environment is created, updated, or deleted.
- A build pipeline is created, updated, or deleted.
- A build pipeline stage is created, updated, or deleted.
- A build run is created, updated, or deleted.
- A trigger is created, updated, or deleted.
- A deployment pipeline is created, updated, or deleted.
- A deployment pipeline stage is created, updated, or deleted.
- A deployment is created or updated.
Event Name | Event Type |
---|---|
Create Project Begin |
|
Create Project End |
|
Update Project Begin |
|
Update Project End |
|
Delete Project Begin |
|
Delete Project End |
|
Schedule Cascade Delete Project Begin |
|
Schedule Cascade Delete Project End |
|
Cancel Scheduled Cascade Delete Project Begin |
|
Cancel Scheduled Cascade Delete Project End |
|
Example event for creating a DevOps project:
{
"eventType": "com.oraclecloud.devopsproject.createproject.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsproject",
"eventTime": "2021-04-16T20:24:35Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "My test resource",
"resourceId": "ocid1.example_regional_resource.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Deploy Artifact Begin |
|
Create Deploy Artifact End |
|
Update Deploy Artifact Begin |
|
Update Deploy Artifact End |
|
Delete Deploy Artifact Begin |
|
Delete Deploy Artifact End |
|
Example event for creating an artifact:
{
"eventType": "com.oraclecloud.devopsdeploy.createdeployartifact.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsdeploy",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsdeployartifact.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Repository Begin |
|
Create Repository End |
|
Update Repository |
|
Delete Repository Begin |
|
Delete Repository End |
|
Mirror Repository Begin |
|
Mirror Repository End |
|
HTTP Receive Pack |
|
SSH Receive Pack |
|
Update Repository Setting |
|
Update Project Setting |
|
Example event for creating a code repository:
{
"eventType": "com.oraclecloud.devopscoderepo.createrepository.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopscoderepo",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsrepository.oc1.iad.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create PullRequest |
|
Decline PullRequest |
|
Merge PullRequest |
|
Reopen PullRequest |
|
Update PullRequest |
|
Create PullRequest Comment |
|
Patch PullRequest |
|
Review PullRequest |
|
Example event for
MergePullRequest.begin
:
{
"eventType": "com.oraclecloud.devopscoderepo.MergePullRequest.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopscoderepo",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopspullrequest.oc1.iad.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Example event for
MergePullRequest.end
:
{
"eventType": "com.oraclecloud.devopscoderepo.mergepullrequest.end",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopscoderepo",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopspullrequest.oc1.iad.unique_ID",
"availabilityDomain": "availability_domain",
"additionalDetails": {
"destinationBranch": "destinationBranch",
"displayName": "PullRequestTestName",
"id": "ocid1.devopspullrequest.oc1.iad.unique_ID",
"lifecycleDetails": "Closed",
"repositoryId": "ocid1.devopsrepository.oc1.iad.unique_ID",
"sourceBranch": "sourceBranch",
"sourceRepositoryId": "ocid1.devopsrepository.oc1.iad.unique_ID"
}
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Connection Begin |
|
Create Connection End |
|
Update Connection Begin |
|
Update Connection End |
|
Delete Connection Begin |
|
Delete Connection End |
|
Example event for
createconnection.begin
:
{
"eventType":"com.oraclecloud.devopsbuild.createconnection.begin",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:19:21Z",
"contentType":"application/json",
"data":{
"eventName":"CreateConnection",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Example event for
createconnection.end
:
{
"eventType":"com.oraclecloud.devopsbuild.createconnection.end",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:19:31Z",
"contentType":"application/json",
"data":{
"eventName":"CreateConnection",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain",
"resourceId": "ocid1.devopsconnection.oc1.phx.unique_ID"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Deploy Environment Begin |
|
Create Deploy Environment End |
|
Update Deploy Environment Begin |
|
Update Deploy Environment End |
|
Delete Deploy Environment Begin |
|
Delete Deploy Environment End |
|
Example event for creating an environment:
{
"eventType": "com.oraclecloud.devopsdeploy.createdeployenvironment.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsdeploy",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsdeployenvironment.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Build Pipeline Begin |
|
Create Build Pipeline End |
|
Update Build Pipeline Begin |
|
Update Build Pipeline End |
|
Delete Build Pipeline Begin |
|
Delete Build Pipeline End |
|
Example event for createbuildpipeline.begin
:
{
"eventType":"com.oraclecloud.devopsbuild.createbuildpipeline.begin",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:20:55Z",
"contentType":"application/json",
"data":{
"eventName":"CreateBuildPipeline",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Example event for createbuildpipeline.end
:
{
"eventType":"com.oraclecloud.devopsbuild.createbuildpipeline.end",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:21:10Z",
"contentType":"application/json",
"data":{
"eventName":"CreateBuildPipeline",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain",
"resourceId": "ocid1.devopsbuildpipeline.oc1.phx.unique_ID"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Build Pipeline Stage Begin |
|
Create Build Pipeline Stage End |
|
Update Build Pipeline Stage Begin |
|
Update Build Pipeline Stage End |
|
Delete Build Pipeline Stage Begin |
|
Delete Build Pipeline Stage End |
|
Example event for createbuildpipelinestage.begin
:
{
"eventType":"com.oraclecloud.devopsbuild.createbuildpipelinestage.begin",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:22:13Z",
"contentType":"application/json",
"data":{
"eventName":"CreateBuildPipelineStage",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Example event for createbuildpipelinestage.end
:
{
"eventType":"com.oraclecloud.devopsbuild.createbuildpipelinestage.end",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:22:18Z",
"contentType":"application/json",
"data":{
"eventName":"CreateBuildPipelineStage",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain",
"resourceId":"ocid1.devopsbuildpipelinestage.oc1.iad.unique_ID"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Build Run |
|
Update Build Run |
|
Delete Build Run |
|
Example event for creating a build run:
{
"eventType":"com.oraclecloud.devopsbuild.createbuildrun",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-18T10:02:45Z",
"contentType":"application/json",
"data":{
"eventName":"CreateBuildRun",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"TestBuildRun_2263040347883644",
"availabilityDomain":"availability_domain"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Trigger Begin |
|
Create Trigger End |
|
Update Trigger Begin |
|
Update Trigger End |
|
Delete Trigger Begin |
|
Delete Trigger End |
|
Example event for createtrigger.begin
:
{
"eventType":"com.oraclecloud.devopsbuild.createtrigger.begin",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:24:13Z",
"contentType":"application/json",
"data":{
"eventName":"CreateTrigger",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Example event for createtrigger.end
:
{
"eventType":"com.oraclecloud.devopsbuild.createtrigger.end",
"cloudEventsVersion":"0.1",
"eventTypeVersion":"2.0",
"source":"devopsbuild",
"eventTime":"2021-08-17T15:24:19Z",
"contentType":"application/json",
"data":{
"eventName":"CreateTrigger",
"compartmentId":"ocid1.compartment.oc1..unique_ID",
"compartmentName":"example_compartment",
"resourceName":"My test resource",
"availabilityDomain":"availability_domain",
"resourceId":"ocid1.devopstrigger.oc1.iad.unique_ID"
},
"eventID":"unique_ID",
"extensions":{
"compartmentId":"ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Deploy Pipeline Begin |
|
Create Deploy Pipeline End |
|
Update Deploy Pipeline Begin |
|
Update Deploy Pipeline End |
|
Delete Deploy Pipeline Begin |
|
Delete Deploy Pipeline End |
|
Example event for creating a pipeline:
{
"eventType": "com.oraclecloud.devopsdeploy.createdeploypipeline.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsdeploy",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsdeploypipeline.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Deploy Stage Begin |
|
Create Deploy Stage End |
|
Update Deploy Stage Begin |
|
Update Deploy Stage End |
|
Delete Deploy Stage Begin |
|
Delete Deploy Stage End |
|
Example event for creating a stage:
{
"eventType": "com.oraclecloud.devopsdeploy.createdeploystage.begin",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsdeploy",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsdeploystage.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}
Event Name | Event Type |
---|---|
Create Deployment |
|
Update Deployment |
|
Example event for creating a deployment:
{
"eventType": "com.oraclecloud.devopsdeploy.createdeployment",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "devopsdeploy",
"eventTime": "2021-04-15T21:32:04Z",
"contentType": "application/json",
"data": {
"compartmentId": "ocid1.compartment.oc1..unique_ID",
"compartmentName": "example_compartment",
"resourceName": "example_resource",
"resourceId": "ocid1.devopsdeployment.oc1.phx.unique_ID",
"availabilityDomain": "availability_domain"
},
"eventID": "unique_ID",
"extensions": {
"compartmentId": "ocid1.compartment.oc1..unique_ID"
}
}