Skip to main content

CI/CD events for Quality Gates

CI/CD events are generated by the Continuous Integration/Continuous Deployment (CI/CD) pipelines. You can use them to integrate your quality requirements with the Guidewire Cloud as part of bring-your-own testing framework.

Subscribe to CI/CD events

To subscribe to CI/CD events, use the App Events Webhooks. For details, see the Webhooks documentation.

Tip:

You can also use CI/CD event webhooks outside of bring-you-own testing. Webhooks allow you to get notifications about different CI/CD events in your pipeline.

Supported events

You can set up webhooks for the following CI/CD events:

  • BuildPromotedEvent
  • IsAppDeployedEvent
  • PullRequestOpenedEvent
  • PullRequestUpdatedEvent
  • RepositoryChangedEvent
  • CiBuildSuccessfulEvent
  • CiBuildFailedEvent

BuildPromotedEvent

The BuildPromotedEvent event is triggered when a build for InsuranceSuite apps is promoted. Note that projectId is the target physical star system to which a build is promoted.

Note: After sending the BuildPromotedEvent event, it might take a minute before the build becomes available for deployment.
Avro schema in JSON format
{
"namespace": "com.guidewire.cicdmanagerservice.avro",
"type": "record",
"name": "BuildPromotedEvent",
"fields": [
{
"name": "tenantId",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "logicalProjectId",
"type": "string"
},
{
"name": "applicationId",
"type": "string"
},
{
"name": "buildId",
"type": "string"
},
{
"name": "branchKey",
"type": "string"
},
{
"name": "targetPlanetClass",
"type": "string"
}
]
}

IsAppDeployedEvent

The IsAppDeployedEvent event is triggered when a deployment process is successful, meaning that an InsuranceSuite app has been deployed to a planet within your star system.

Avro schema in JSON format
{
"namespace": "com.guidewire.cicdmanagerservice.avro",
"type": "record",
"name": "IsAppDeployedEvent",
"fields": [
{ "name": "tenantId", "type": "string" },
{ "name": "projectId", "type": "string" },
{ "name": "planetId", "type": "string" },
{ "name": "applicationId", "type": "string" },
{ "name": "buildId", "type": "string" },
{ "name": "commitHash", "type": "string" }
]
}

PullRequestOpenedEvent

The PullRequestOpenedEvent event is triggered by the following actions within the InsuranceSuite repositories in your star system:

  • Creating a new pull request.
  • Reopening an already existing pull request.
Avro schema in JSON format
{
"namespace": "com.guidewire.scmservice.avro",
"type": "record",
"name": "PullRequestOpenedEvent",
"fields": [
{
"name": "actor",
"type": {
"type": "record",
"name": "Actor",
"fields": [
{
"name": "emailAddress",
"type": "string"
},
{
"name": "displayName",
"type": "string"
}
]
}
},
{
"name": "pullRequest",
"type": {
"type": "record",
"name": "PullRequest",
"fields": [
{
"name": "fromRef",
"type": {
"type": "record",
"name": "Ref",
"fields": [
{
"name": "branchKey",
"type": "string"
},
{
"name": "repository",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "latestCommit",
"type": "string"
}
]
}
},
{
"name": "toRef",
"type": "Ref"
},
{
"name": "link",
"type": "string"
},
{
"name": "title",
"type": "string"
},
{
"name": "createdDate",
"type": "long"
}
]
}
}
]
}

PullRequestUpdatedEvent

The PullRequestUpdatedEvent event is triggered whenever changes are made to the source branch of a pull request in one of the InsuranceSuite repositories in your star system. These changes include the following:

  • Pushing changes into a source branch.
  • Rebasing a source branch into another branch.
  • Merging another branch into a source branch.

Note that merging a pull request into a target branch doesn't trigger this event.

Avro schema in JSON format
{
"namespace": "com.guidewire.scmservice.avro",
"type": "record",
"name": "PullRequestUpdatedEvent",
"fields": [
{
"name": "actor",
"type": {
"type": "record",
"name": "Actor",
"fields": [
{
"name": "emailAddress",
"type": "string"
},
{
"name": "displayName",
"type": "string"
}
]
}
},
{
"name": "pullRequest",
"type": {
"type": "record",
"name": "PullRequest",
"fields": [
{
"name": "fromRef",
"type": {
"type": "record",
"name": "Ref",
"fields": [
{
"name": "branchKey",
"type": "string"
},
{
"name": "repository",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "latestCommit",
"type": "string"
}
]
}
},
{
"name": "toRef",
"type": "Ref"
},
{
"name": "link",
"type": "string"
},
{
"name": "title",
"type": "string"
},
{
"name": "createdDate",
"type": "long"
}
]
}
},
{
"name": "previousFromHash",
"type": "string"
}
]
}

RepositoryChangedEvent

The RepositoryChangedEvent event is triggered by the following actions within the InsuranceSuite repositories in your star system:

  • Pushing changes to a branch.
  • Creating or deleting a branch.
  • Creating or deleting a tag.
Avro schema in JSON format
{
"namespace": "com.guidewire.scmservice.avro",
"type": "record",
"name": "RepositoryChangedEvent",
"fields": [
{
"name": "actor",
"type": {
"type": "record",
"name": "Actor",
"fields": [
{
"name": "emailAddress",
"type": "string"
},
{
"name": "displayName",
"type": "string"
}
]
}
},
{
"name": "repository",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "changes",
"type": {
"type": "array",
"items": {
"type": "record",
"name": "Change",
"fields": [
{
"name": "branchKey",
"type": "string"
},
{
"name": "fromHash",
"type": "string"
},
{
"name": "toHash",
"type": "string"
},
{
"name": "type",
"type": "string"
}
]
}
}
}
]
}

CiBuildSuccessfulEvent

The CiBuildSuccessfulEvent event is triggered when a TeamCity build for the InsuranceSuite app is finished successfully.

Avro schema in JSON format
{
"namespace": "com.guidewire.cicdmanagerservice.avro",
"type": "record",
"name": "CiBuildSuccessfulEvent",
"fields": [
{
"name": "tenantId",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "logicalProjectId",
"type": "string"
},
{
"name": "applicationId",
"type": "string"
},
{
"name": "ciToolBuildId",
"type": "string"
},
{
"name": "buildType",
"type": "string"
},
{
"name": "buildTypeName",
"type": "string"
},
{
"name": "buildNumber",
"type": "string"
},
{
"name": "branchKey",
"type": "string"
},
{
"name": "webUrl",
"type": "string"
},
{
"name": "triggeredType",
"type": "string"
},
{
"name": "finishDate",
"type": "string"
},
{
"name": "commitHash",
"type": "string"
}
]
}

CiBuildFailedEvent

The CiBuildFailedEvent event is triggered when a TeamCity build for the InsuranceSuite app is finished with failure.

Avro schema in JSON format
{
"namespace": "com.guidewire.cicdmanagerservice.avro",
"type": "record",
"name": "CiBuildFailedEvent",
"fields": [
{
"name": "tenantId",
"type": "string"
},
{
"name": "projectId",
"type": "string"
},
{
"name": "logicalProjectId",
"type": "string"
},
{
"name": "applicationId",
"type": "string"
},
{
"name": "ciToolBuildId",
"type": "string"
},
{
"name": "buildType",
"type": "string"
},
{
"name": "buildTypeName",
"type": "string"
},
{
"name": "buildNumber",
"type": "string"
},
{
"name": "branchKey",
"type": "string"
},
{
"name": "webUrl",
"type": "string"
},
{
"name": "triggeredType",
"type": "string"
},
{
"name": "finishDate",
"type": "string"
},
{
"name": "commitHash",
"type": "string"
}
]
}