Project creation
- Print
- PDF
Project creation
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Overview
Creating a SourcePipeline project
Requests
API URL
POST {SOURCEPIPELINE_API_URL}/project
Request parameters
None
Request queries
None
Request bodies
{
"name": "string",
"description": "string",
"tasks": [
{
"name": "string",
"type": "string",
"config": {
"projectId": "number",
"target": {
"info": {
"branch": "string"
}
}
},
"linkedTasks": ["string"]
}
],
"trigger": {
"repository": [
{
"type": "string",
"name": "string",
"branch": "string"
}
],
"sourcepipeline": [
{
"id" : "number"
}
],
"schedule": [
{
"day": ["string"],
"time": "string",
"timeZone": "string",
"scheduleOnlyWithChange" : "boolean"
}
],
}
}
Item | Type | Required | Description | Remarks |
---|---|---|---|---|
name | string | Y | Project name | |
description | string | N | Project description | |
tasks.name | string | Y | Task name | |
tasks.type | string | Y | Task type | "SourceBuild" |
tasks.config.projectId | number | Y | Task project ID | Query via sourceCommitRepositoryList API Query via sourcePipelineProjectList API |
tasks.config.stageId | number | N (Required if tasks.type = SourceDeploy) | SourceDeploy stage ID | Query via sourceDeployStageList API |
tasks.config.scenarioId | number | N (Required if tasks.type = SourceDeploy) | SourceDeploy scenario ID | Query via sourceDeployScenarioList API |
tasks.config.target.info.branch | string | N (Optional if tasks.type= SourceBuild) | Connection information - branch | Query via sourceCommitBranchList API |
tasks.linkedTasks | string[] | Y | Preceding task. Name of the task to be executed beforehand. | |
trigger.repository.type | string | N (Required if trigger.repository exists) | Push trigger - Repository type | "sourcecommit" |
trigger.repository.name | string | N (Required if trigger.repository exists) | Push trigger - Repository name | Query via sourceCommitRepositoryList API |
trigger.repository.branch | string | N (Required if trigger.repository exists) | Push trigger - Branch | Query via sourceCommitBranchList API |
trigger.sourcepipeline.id | number | N (Required if trigger.sourcepipeline exists) | Pipeline trigger - Pipeline ID | Query via sourcePipelineProjectList API |
trigger.schedule.day | string[] | N (Required if trigger.schedule exists) | Scheduled trigger - Day | "MON" |
trigger.schedule.time | string | N (Required if trigger.schedule exists) | Scheduled trigger - Time | Input in [HH:mm] format. Example: "13:10" |
trigger.schedule.timeZone | string | N (Required if trigger.schedule exists) | Scheduled trigger - Time zone | Query via sourcePipelineTimeZone API |
trigger.schedule.scheduleOnlyWithChange | boolean | N (Required if trigger.schedule exists) | Scheduled trigger - Whether to execute on change |
Responses
Response bodies
{
"projectId": "integer"
}
Item | Type | Description | Remarks |
---|---|---|---|
projectId | number | Project ID |
Was this article helpful?