Project creation
    • PDF

    Project creation

    • PDF

    Article Summary

    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"
                }
            ],
        }
    }
    
    ItemTypeRequiredDescriptionRemarks
    namestringYProject name
    descriptionstringNProject description
    tasks.namestringYTask name
    tasks.typestringYTask type"SourceBuild"
    tasks.config.projectIdnumberYTask project IDQuery via sourceCommitRepositoryList API
    Query via sourcePipelineProjectList API
    tasks.config.stageIdnumberN
    (Required if tasks.type = SourceDeploy)
    SourceDeploy stage IDQuery via sourceDeployStageList API
    tasks.config.scenarioIdnumberN
    (Required if tasks.type = SourceDeploy)
    SourceDeploy scenario IDQuery via sourceDeployScenarioList API
    tasks.config.target.info.branchstringN
    (Optional if tasks.type= SourceBuild)
    Connection information - branchQuery via sourceCommitBranchList API
    tasks.linkedTasksstring[]Y
    Preceding task. Name of the task to be executed beforehand.
    trigger.repository.typestringN
    (Required if trigger.repository exists)
    Push trigger - Repository type"sourcecommit"
    trigger.repository.namestringN
    (Required if trigger.repository exists)
    Push trigger - Repository nameQuery via sourceCommitRepositoryList API
    trigger.repository.branchstringN
    (Required if trigger.repository exists)
    Push trigger - BranchQuery via sourceCommitBranchList API
    trigger.sourcepipeline.idnumberN
    (Required if trigger.sourcepipeline exists)
    Pipeline trigger - Pipeline IDQuery via sourcePipelineProjectList API
    trigger.schedule.daystring[]N
    (Required if trigger.schedule exists)
    Scheduled trigger - Day"MON"
    trigger.schedule.timestringN
    (Required if trigger.schedule exists)
    Scheduled trigger - TimeInput in [HH:mm] format. Example: "13:10"
    trigger.schedule.timeZonestringN
    (Required if trigger.schedule exists)
    Scheduled trigger - Time zoneQuery via sourcePipelineTimeZone API
    trigger.schedule.scheduleOnlyWithChangebooleanN
    (Required if trigger.schedule exists)
    Scheduled trigger - Whether to execute on change

    Responses

    Response bodies

    {
        "projectId": "integer"
    }
    
    ItemTypeDescriptionRemarks
    projectIdnumberProject ID

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.