Update By Name Using PUT 3
Update a Gerrit Trigger with project and name
name
project
The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /codestream/api/about
{
"branch": "master",
"configurations": [
{
"pipeline": "rest_pipeline",
"input": {},
"eventType": "change-merged",
"failureComment": "Pipeline Execution Failed",
"successComment": "Pipeline Execution Successful"
},
{
"pipeline": "rest_pipeline",
"input": {},
"eventType": "patchset-created",
"verifiedLabel": "Verified",
"failureComment": "Pipeline Failed",
"successComment": "Pipeline Completed"
}
],
"description": "string",
"enabled": true,
"exclusions": [
{
"type": "PLAIN",
"value": "example.txt"
}
],
"gerritProject": "TestGerritProject",
"inclusions": [
{
"type": "PLAIN",
"value": "example.txt"
}
],
"listener": "Gerrit-Listener",
"name": "My-Name",
"prioritizeExclusion": true,
"project": "My-Project"
}
Gerrit Project Branch on which the change has to be monitored.
The configuration of an Gerrit Event.
A human-friendly description.
Indicates that this trigger will be addressed on receiving respective events.
Provide file exclusions as conditions for the trigger.
Gerrit Project which is to be monitored for the change.
Provide file inclusions as conditions for the trigger.
Gerrit Listener which will receive the events for this trigger.
A human-friendly name used as an identifier in APIs that support this option
Prioritize Exclusion ensures that pipelines are not triggered even if any of the files in a commit match the specified files in the exclusion paths or regex.
The project this entity belongs to.
'Success' with Gerrit Trigger Update
{
"_createTimeInMicros": 1568625938000000,
"_createdBy": "exampleuser",
"_link": "/codestream/api/<prefix>/8365ef3b-8bf3-48aa-bd5d-7113fcff827c",
"_updateTimeInMicros": 1568625938000000,
"_updatedBy": "exampleuser",
"branch": "master",
"configurations": [
{
"pipeline": "rest_pipeline",
"input": {},
"eventType": "change-merged",
"failureComment": "Pipeline Execution Failed",
"successComment": "Pipeline Execution Successful"
},
{
"pipeline": "rest_pipeline",
"input": {},
"eventType": "patchset-created",
"verifiedLabel": "Verified",
"failureComment": "Pipeline Failed",
"successComment": "Pipeline Completed"
}
],
"createdAt": "2019-09-16 09:25:38.065065+00",
"createdBy": "exampleuser",
"description": "string",
"enabled": true,
"exclusions": [
{
"type": "PLAIN",
"value": "example.txt"
}
],
"gerritProject": "TestGerritProject",
"id": "8365ef3b-8bf3-48aa-bd5d-7113fcff827c",
"inclusions": [
{
"type": "PLAIN",
"value": "example.txt"
}
],
"listener": "Gerrit-Listener",
"name": "My-Name",
"prioritizeExclusion": true,
"project": "My-Project",
"updatedAt": "2019-09-16 09:25:38.065065+00",
"updatedBy": "exampleuser",
"version": "v1"
}
This field is provided for backward compatibility. Contains the same value as the 'createdAt' field as a UNIX timestamp in microseconds
This field is provided for backward compatibility. Contains the same value as the 'createdBy' field
Partial URL that provides details of the resource.
This field is provided for backward compatibility. Contains the same value as the 'updatedAt' field as a UNIX timestamp in microseconds
This field is provided for backward compatibility. Contains the same value as the 'updatedBy' field
Gerrit Project Branch on which the change has to be monitored.
The configuration of an Gerrit Event.
Date when the entity was created. The date is in ISO 8601 with time zone
The user that created this entity
A human-friendly description.
Indicates that this trigger will be addressed on receiving respective events.
Provide file exclusions as conditions for the trigger.
Gerrit Project which is to be monitored for the change.
The id of this resource.
Provide file inclusions as conditions for the trigger.
Gerrit Listener which will receive the events for this trigger.
A human-friendly name used as an identifier in APIs that support this option
Prioritize Exclusion ensures that Pipelines are not triggered even if any of the files in a commit match the specified files in the exclusion paths or regex.
The project this entity belongs to.
Date when the entity was last updated. The date is in ISO 8601 with time zone.
The user that last updated this entity
Version of the resource.
Unauthorized Request
Forbidden
Not Found
Server Error