Create Gerrit Project
Create Gerrit project
Request
URI
POST
https://{api_host}/pipeline/api/gerrit-projects
COPY
Responses
200
OK
Returns
GerritProject
of type(s)
application/json
{
"name": "string",
"kind": "string",
"tags": [
"string"
],
"_link": "/pipeline/api/..",
"_createdBy": "Test user",
"_updatedBy": "Test user",
"_updateTimeInMicros": 1499279153081002,
"project": "Test Project",
"providerLink": "/pipeline/api/gerrit-provider/providerLink",
"projectName": "GerritProjectForCodestream",
"branch": "master",
"configurations": [
{
"pipelineLink": "/pipeline/api/pipelines/pipelineLink",
"pipelineName": "Gerrit-Pipeline",
"input": "{\"GERRIT_CHANGE_URL\",\"http://gerritservertest.com/32432\"}",
"comments": "Execution comment",
"eventType": "change-merged",
"owners": [
"string"
],
"verifiedLabel": "Verified +1",
"failureComment": "Execution failed",
"successComment": "Execution successful"
}
],
"enabled": true,
"needsReset": false,
"inclusions": [
{
"type": "path",
"value": "/root/**"
}
],
"exclusions": [
{
"type": "path",
"value": "/root/**"
}
],
"prioritizeExclusion": true
}
string
name
Optional
name
string
kind
Optional
kind
array of
string
tags
Optional
tags
string
_link
Optional
_link
string
_createdBy
Optional
_createdBy
string
_updatedBy
Optional
updatedBy
integer As int64
As int64
_updateTimeInMicros
Optional
_updateTimeInMicros
string
project
Optional
project
string
providerLink
Optional
providerLink
string
projectName
Optional
projectName
string
branch
Optional
branch
boolean
enabled
Optional
enabled
boolean
needsReset
Optional
needsReset
boolean
prioritizeExclusion
Optional
prioritizeExclusion
500
Error
Operation doesn't return any data structure
Gerrit Project Service Operations
POST
Create Gerrit Project
DELETE
Delete Gerrit Project
GET
Get Gerrit Project
GET
List Gerrit Projects
PATCH
Modify Gerrit Project
PUT
Update Gerrit Project