MENU
      프로젝트 생성

        프로젝트 생성


        기사 요약

        개요

        SourcePipeline 프로젝트를 생성합니다.

        요청

        API URL

        POST  {SOURCEPIPELINE_API_URL}/project
        Plain text

        요청 Parameter

        없음

        요청 Query

        없음

        요청 Body

        {
            "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"
                    }
                ]
            }
        }
        JSON
        항목타입필수여부설명비고
        namestringY프로젝트 이름
        descriptionstringN프로젝트 설명
        tasks.namestringY태스크 이름
        tasks.typestringY태스크 타입"SourceBuild" | "SourceDeploy"
        tasks.config.projectIdnumberY태스크 프로젝트 IDsourceBuildProjectList API 로 조회
        sourceDeployProjectList API 로 조회
        tasks.config.stageIdnumberN
        (tasks.type = SourceDeploy일때, 필수)
        SourceDeploy stage IDsourceDeployStageList API 로 조회
        tasks.config.scenarioIdnumberN
        (tasks.type = SourceDeploy 일때, 필수)
        SourceDeploy scenario IDsourceDeployScenarioList API 로 조회
        tasks.config.target.info.branchstringN
        ( tasks.type= SourceBuild 일때, 선택 입력)
        연결정보 - 브랜치sourceCommitBranchList API 로 조회
        tasks.linkedTasksstring[]Y
        선행 작업. 앞서 실행될 태스크의 이름
        trigger.repository.typestringN
        (trigger.repository 가 있을 때, 필수)
        Push 트리거 - 리파지토리 타입"sourcecommit"
        trigger.repository.namestringN
        (trigger.repository 가 있을 때, 필수)
        Push 트리거 - 리파지토리 이름sourceCommitRepoisotryList API 로 조회
        trigger.repository.branchstringN
        (trigger.repository 가 있을 때, 필수)
        Push 트리거 - 브랜치sourceCommitBranchList API 로 조회
        trigger.sourcepipeline.idnumberN
        (trigger.sourcepipeline 이 있을 때, 필수)
        파이프라인 트리거 - 파이프라인 IDsourcePipelineProjectList API 로 조회
        trigger.schedule.daystring[]N
        (trigger.schedule 이 있을 때, 필수)
        예약 트리거 - 요일"MON" | "TUE" | "WED"| "THU" | "FRI" | "SAT" | "SUN"
        trigger.schedule.timestringN
        (trigger.schedule 이 있을 때, 필수)
        예약 트리거 - 시간[HH:mm] 형태로 입력. 예시: "13:10"
        trigger.schedule.timeZonestringN
        (trigger.schedule 이 있을 때, 필수)
        예약 트리거 - 타임존sourcePipelineTimeZone API 로 조회
        trigger.schedule.scheduleOnlyWithChangebooleanN
        (trigger.schedule 이 있을 때, 필수)
        예약 트리거 - 변경 시 실행 여부

        응답

        응답 Body

        {
            "projectId": "integer"
        }
        JSON
        항목타입설명비고
        projectIdnumber프로젝트 ID

        이 문서가 도움이 되었습니까?

        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.