BuildRestClient class
VSS REST api에 대한 요청을 만드는 데 사용해야 하는 기본 클래스(파생)입니다.
- Extends
메서드
생성자 세부 정보
BuildRestClient(IVssRestClientOptions)
속성 세부 정보
RESOURCE_AREA_ID
static RESOURCE_AREA_ID: "965220d5-5bb9-42cf-8d67-9b146df2a5a4" = "965220d5-5bb9-42cf-8d67-9b146df2a5a4"
속성 값
"965220d5-5bb9-42cf-8d67-9b146df2a5a4"
메서드 세부 정보
addBuildTag(string, number, string)
빌드에 태그를 추가합니다.
function addBuildTag(project: string, buildId: number, tag: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- tag
-
string
추가할 태그입니다.
반품
Promise<string[]>
addBuildTags(string[], string, number)
빌드에 태그를 추가합니다.
function addBuildTags(tags: string[], project: string, buildId: number): Promise<string[]>
매개 변수
- tags
-
string[]
태그를 추가하세요. 요청 본문은 나열된 태그들로부터 직접 구성됩니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<string[]>
addDefinitionTag(string, number, string)
정의에 태그 추가
function addDefinitionTag(project: string, definitionId: number, tag: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- tag
-
string
추가할 태그입니다.
반품
Promise<string[]>
addDefinitionTags(string[], string, number)
정의에 여러 태그를 추가합니다.
function addDefinitionTags(tags: string[], project: string, definitionId: number): Promise<string[]>
매개 변수
- tags
-
string[]
태그를 추가하세요.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
반품
Promise<string[]>
addRetentionLeases(NewRetentionLease[], string)
파이프라인 운영을 위한 새로운 임대 계약을 추가합니다.
function addRetentionLeases(newLeases: NewRetentionLease[], project: string): Promise<RetentionLease[]>
매개 변수
- newLeases
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<RetentionLease[]>
authorizeDefinitionResources(DefinitionResourceReference[], string, number)
function authorizeDefinitionResources(resources: DefinitionResourceReference[], project: string, definitionId: number): Promise<DefinitionResourceReference[]>
매개 변수
- resources
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
반품
Promise<DefinitionResourceReference[]>
authorizeProjectResources(DefinitionResourceReference[], string)
function authorizeProjectResources(resources: DefinitionResourceReference[], project: string): Promise<DefinitionResourceReference[]>
매개 변수
- resources
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<DefinitionResourceReference[]>
createArtifact(BuildArtifact, string, number)
유물을 빌드와 연관시킵니다.
function createArtifact(artifact: BuildArtifact, project: string, buildId: number): Promise<BuildArtifact>
매개 변수
- artifact
- BuildArtifact
유물.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<BuildArtifact>
createDefinition(BuildDefinition, string, number, number)
새 정의를 만듭니다.
function createDefinition(definition: BuildDefinition, project: string, definitionToCloneId?: number, definitionToCloneRevision?: number): Promise<BuildDefinition>
매개 변수
- definition
- BuildDefinition
정의입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionToCloneId
-
number
- definitionToCloneRevision
-
number
반품
Promise<BuildDefinition>
createFolder(Folder, string, string)
deleteBuild(string, number)
빌드를 삭제합니다.
function deleteBuild(project: string, buildId: number): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<void>
deleteBuildTag(string, number, string)
빌드에서 태그를 제거합니다. 참고: 이 API는 특수 문자가 포함된 태그에는 적용되지 않습니다. 특수 문자가 포함된 태그를 제거하려면 PATCH 메서드를 사용하세요(6.0+에서)
function deleteBuildTag(project: string, buildId: number, tag: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- tag
-
string
태그를 제거해야 합니다.
반품
Promise<string[]>
deleteDefinition(string, number)
정의 및 연결된 모든 빌드를 삭제합니다.
function deleteDefinition(project: string, definitionId: number): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
반품
Promise<void>
deleteDefinitionTag(string, number, string)
정의에서 태그를 제거합니다. 참고: 이 API는 특수 문자가 포함된 태그에는 적용되지 않습니다. 특수 문자가 포함된 태그를 제거하려면 PATCH 메서드를 사용하세요(6.0+에서)
function deleteDefinitionTag(project: string, definitionId: number, tag: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- tag
-
string
태그를 제거해야 합니다.
반품
Promise<string[]>
deleteFolder(string, string)
정의 폴더를 삭제합니다. 정의와 그에 따른 빌드도 삭제됩니다.
function deleteFolder(project: string, path: string): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- path
-
string
폴더의 전체 경로입니다.
반품
Promise<void>
deleteRetentionLeasesById(string, number[])
특정 유지 임대 계약을 제거합니다.
function deleteRetentionLeasesById(project: string, ids: number[]): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- ids
-
number[]
반품
Promise<void>
deleteTag(string, string)
빌드, 정의, 태그 스토어에서 태그를 제거합니다
function deleteTag(project: string, tag: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- tag
-
string
태그를 제거해야 합니다.
반품
Promise<string[]>
deleteTemplate(string, string)
빌드 정의 템플릿을 삭제합니다.
function deleteTemplate(project: string, templateId: string): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- templateId
-
string
템플릿의 ID입니다.
반품
Promise<void>
getArtifact(string, number, string)
빌드에 맞는 특정 유물을 얻습니다.
function getArtifact(project: string, buildId: number, artifactName: string): Promise<BuildArtifact>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- artifactName
-
string
아티팩트 이름입니다.
반품
Promise<BuildArtifact>
getArtifactContentZip(string, number, string)
빌드에 맞는 특정 유물을 얻습니다.
function getArtifactContentZip(project: string, buildId: number, artifactName: string): Promise<ArrayBuffer>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- artifactName
-
string
아티팩트 이름입니다.
반품
Promise<ArrayBuffer>
getArtifacts(string, number)
빌드에 필요한 모든 아티팩트를 얻습니다.
function getArtifacts(project: string, buildId: number): Promise<BuildArtifact[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<BuildArtifact[]>
getAttachment(string, number, string, string, string, string)
특정한 애착을 갖게 되죠.
function getAttachment(project: string, buildId: number, timelineId: string, recordId: string, type: string, name: string): Promise<ArrayBuffer>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- timelineId
-
string
타임라인의 ID입니다.
- recordId
-
string
타임라인 기록의 ID.
- type
-
string
부착물의 종류.
- name
-
string
첨부 파일의 이름입니다.
반품
Promise<ArrayBuffer>
getAttachments(string, number, string)
빌드와 연관된 특정 유형의 부착물 목록을 얻습니다.
function getAttachments(project: string, buildId: number, type: string): Promise<Attachment[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- type
-
string
첨부 파일의 유형입니다.
반품
Promise<Attachment[]>
getBadge(string, number, string)
가장 최근 빌드의 상태를 나타내는 배지를 받아 정의가 필요합니다. 이 API는 더 이상 지원되지 않는다는 점을 참고하세요. Prefer StatusBadgeController.GetStatusBadge.
function getBadge(project: string, definitionId: number, branchName?: string): Promise<string>
매개 변수
- project
-
string
프로젝트 ID나 이름.
- definitionId
-
number
정의의 ID입니다.
- branchName
-
string
분기의 이름입니다.
반품
Promise<string>
getBuild(string, number, string)
빌드를 가져옵니다.
function getBuild(project: string, buildId: number, propertyFilters?: string): Promise<Build>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
- propertyFilters
-
string
반품
Promise<Build>
getBuildBadge(string, string, string, string)
지정된 분파의 최신 빌드 상태를 나타내는 배지를 받습니다.
function getBuildBadge(project: string, repoType: string, repoId?: string, branchName?: string): Promise<BuildBadge>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repoType
-
string
저장소 유형.
- repoId
-
string
저장소 ID입니다.
- branchName
-
string
브랜치 이름입니다.
반품
Promise<BuildBadge>
getBuildBadgeData(string, string, string, string)
지정된 분파의 최신 빌드 상태를 나타내는 배지를 받습니다.
function getBuildBadgeData(project: string, repoType: string, repoId?: string, branchName?: string): Promise<string>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repoType
-
string
저장소 유형.
- repoId
-
string
저장소 ID입니다.
- branchName
-
string
브랜치 이름입니다.
반품
Promise<string>
getBuildChanges(string, number, string, number, boolean)
빌드와 관련된 변경 사항을 받아요
function getBuildChanges(project: string, buildId: number, continuationToken?: string, top?: number, includeSourceChange?: boolean): Promise<PagedList<Change>>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
- continuationToken
-
string
- top
-
number
최대 변경 횟수
- includeSourceChange
-
boolean
반품
getBuildController(number)
컨트롤러를 얻는다
function getBuildController(controllerId: number): Promise<BuildController>
매개 변수
- controllerId
-
number
반품
Promise<BuildController>
getBuildControllers(string)
컨트롤러를 받고, 이름으로 필터링 가능해
function getBuildControllers(name?: string): Promise<BuildController[]>
매개 변수
- name
-
string
반품
Promise<BuildController[]>
getBuildGeneralSettings(string)
파이프라인 일반 설정을 얻습니다.
function getBuildGeneralSettings(project: string): Promise<PipelineGeneralSettings>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<PipelineGeneralSettings>
getBuildLog(string, number, number, number, number)
빌드용 개별 로그 파일을 받아요.
function getBuildLog(project: string, buildId: number, logId: number, startLine?: number, endLine?: number): Promise<string>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- logId
-
number
로그 파일의 ID입니다.
- startLine
-
number
출발선.
- endLine
-
number
끝선.
반품
Promise<string>
getBuildLogLines(string, number, number, number, number)
빌드용 개별 로그 파일을 받아요.
function getBuildLogLines(project: string, buildId: number, logId: number, startLine?: number, endLine?: number): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- logId
-
number
로그 파일의 ID입니다.
- startLine
-
number
출발선.
- endLine
-
number
끝선.
반품
Promise<string[]>
getBuildLogs(string, number)
건설용 로그를 얻고,
function getBuildLogs(project: string, buildId: number): Promise<BuildLog[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<BuildLog[]>
getBuildLogsZip(string, number)
건설용 로그를 얻고,
function getBuildLogsZip(project: string, buildId: number): Promise<ArrayBuffer>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<ArrayBuffer>
getBuildLogZip(string, number, number, number, number)
빌드용 개별 로그 파일을 받아요.
function getBuildLogZip(project: string, buildId: number, logId: number, startLine?: number, endLine?: number): Promise<ArrayBuffer>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- logId
-
number
로그 파일의 ID입니다.
- startLine
-
number
출발선.
- endLine
-
number
끝선.
반품
Promise<ArrayBuffer>
getBuildOptionDefinitions(string)
시스템에서 지원하는 모든 빌드 정의 옵션을 사용할 수 있습니다.
function getBuildOptionDefinitions(project?: string): Promise<BuildOptionDefinition[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<BuildOptionDefinition[]>
getBuildProperties(string, number, string[])
빌드를 위한 부동산을 얻습니다.
function getBuildProperties(project: string, buildId: number, filter?: string[]): Promise<any>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- filter
-
string[]
쉼표로 구분된 속성 목록입니다. 명시가 명시되어 있다면, 이 특정 속성들로 필터링됩니다.
반품
Promise<any>
getBuildReport(string, number, string)
빌드 리포트를 받는다.
function getBuildReport(project: string, buildId: number, type?: string): Promise<BuildReportMetadata>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- type
-
string
반품
Promise<BuildReportMetadata>
getBuildReportHtmlContent(string, number, string)
빌드 리포트를 받는다.
function getBuildReportHtmlContent(project: string, buildId: number, type?: string): Promise<any>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- type
-
string
반품
Promise<any>
getBuilds(string, number[], number[], string, Date, Date, string, BuildReason, BuildStatus, BuildResult, string[], string[], number, string, number, QueryDeletedOption, BuildQueryOrder, string, number[], string, string)
빌드 목록을 가져옵니다.
function getBuilds(project: string, definitions?: number[], queues?: number[], buildNumber?: string, minTime?: Date, maxTime?: Date, requestedFor?: string, reasonFilter?: BuildReason, statusFilter?: BuildStatus, resultFilter?: BuildResult, tagFilters?: string[], properties?: string[], top?: number, continuationToken?: string, maxBuildsPerDefinition?: number, deletedFilter?: QueryDeletedOption, queryOrder?: BuildQueryOrder, branchName?: string, buildIds?: number[], repositoryId?: string, repositoryType?: string): Promise<PagedList<Build>>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitions
-
number[]
쉼표로 구분된 정의 ID 목록입니다. 지정된 경우 이러한 정의에 대한 빌드를 필터링합니다.
- queues
-
number[]
쉼표로 구분된 큐 ID 목록입니다. 지정된 경우 이러한 큐에 대해 실행된 빌드를 필터링합니다.
- buildNumber
-
string
지정한 경우 이 빌드 번호와 일치하는 빌드를 필터링합니다. 접두사 검색을 수행하려면 *를 추가합니다.
- minTime
-
Date
지정된 경우 지정된 queryOrder에 따라 이 날짜 이후에 완료/시작/큐에 대기된 빌드를 필터링합니다.
- maxTime
-
Date
지정된 경우 지정된 queryOrder에 따라 이 날짜 이전에 완료/시작/큐에 대기된 빌드를 필터링합니다.
- requestedFor
-
string
지정한 경우 지정된 사용자에 대해 요청된 빌드를 필터링합니다.
- reasonFilter
- BuildReason
지정한 경우 이러한 이유와 일치하는 빌드를 필터링합니다.
- statusFilter
- BuildStatus
지정한 경우 이 상태와 일치하는 빌드를 필터링합니다.
- resultFilter
- BuildResult
지정한 경우 이 결과와 일치하는 빌드를 필터링합니다.
- tagFilters
-
string[]
쉼표로 구분된 태그 목록입니다. 지정한 경우 지정된 태그가 있는 빌드를 필터링합니다.
- properties
-
string[]
검색할 속성의 쉼표로 구분된 목록입니다.
- top
-
number
반환할 빌드의 최대 수입니다.
- continuationToken
-
string
이 메서드에 대한 이전 호출에서 반환된 연속 토큰으로, 다음 빌드 집합을 반환하는 데 사용할 수 있습니다.
- maxBuildsPerDefinition
-
number
정의당 반환할 빌드의 최대 수입니다.
- deletedFilter
- QueryDeletedOption
삭제된 빌드를 제외, 포함 또는 반환할지 여부를 나타냅니다.
- queryOrder
- BuildQueryOrder
빌드를 반환해야 하는 순서입니다.
- branchName
-
string
지정한 경우 이 분기를 빌드한 분기를 빌드하는 빌드를 필터링합니다.
- buildIds
-
number[]
검색할 빌드의 ID를 지정하는 쉼표로 구분된 목록입니다.
- repositoryId
-
string
지정된 경우 이 리포지토리에서 빌드된 빌드를 필터링합니다.
- repositoryType
-
string
지정한 경우 이 형식의 리포지토리에서 빌드된 빌드를 필터링합니다.
반품
getBuildSettings(string)
빌드 설정을 얻고,
function getBuildSettings(project?: string): Promise<BuildSettings>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<BuildSettings>
getBuildStageLatestTimeline(string, number, string, number, string)
특정 단계로 필터링된 빌드의 최신 타임라인을 가져옵니다.
function getBuildStageLatestTimeline(project: string, buildId: number, stageName: string, changeId?: number, planId?: string): Promise<Timeline>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- stageName
-
string
필터링할 단계의 이름입니다.
- changeId
-
number
필터링할 변경 ID입니다.
- planId
-
string
계획의 ID입니다.
반품
Promise<Timeline>
getBuildStageTimeline(string, number, string, string, number, string)
특정 단계로 필터링된 빌드의 타임라인을 가져옵니다.
function getBuildStageTimeline(project: string, buildId: number, timelineId: string, stageName: string, changeId?: number, planId?: string): Promise<Timeline>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- timelineId
-
string
타임라인의 ID입니다.
- stageName
-
string
필터링할 단계의 이름입니다.
- changeId
-
number
필터링할 변경 ID입니다.
- planId
-
string
계획의 ID입니다.
반품
Promise<Timeline>
getBuildTags(string, number)
빌드 태그를 받아.
function getBuildTags(project: string, buildId: number): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<string[]>
getBuildTimeline(string, number, string, number, string)
빌드 세부 정보를 얻습니다
function getBuildTimeline(project: string, buildId: number, timelineId?: string, changeId?: number, planId?: string): Promise<Timeline>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
- timelineId
-
string
- changeId
-
number
- planId
-
string
반품
Promise<Timeline>
getBuildWorkItemsRefs(string, number, number)
빌드와 관련된 작업 아이템을 받아요. 같은 프로젝트 내의 작업 항목만 반납됩니다.
function getBuildWorkItemsRefs(project: string, buildId: number, top?: number): Promise<ResourceRef[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- top
-
number
반납해야 할 작업 항목의 최대 수.
반품
Promise<ResourceRef[]>
getBuildWorkItemsRefsFromCommits(string[], string, number, number)
빌드와 연관된 작업 항목을 특정 커밋으로 필터링해 가져옵니다.
function getBuildWorkItemsRefsFromCommits(commitIds: string[], project: string, buildId: number, top?: number): Promise<ResourceRef[]>
매개 변수
- commitIds
-
string[]
쉼표로 구분된 커밋 ID 목록입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- top
-
number
반환할 작업 항목의 최대 수, 또는 커밋 ID가 지정되지 않은 경우 고려해야 할 커밋 수.
반품
Promise<ResourceRef[]>
getChangesBetweenBuilds(string, number, number, number)
두 빌드 간에 저장소에 변경된 내용을 가져옵니다.
function getChangesBetweenBuilds(project: string, fromBuildId?: number, toBuildId?: number, top?: number): Promise<Change[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- fromBuildId
-
number
첫 번째 빌드의 ID.
- toBuildId
-
number
마지막 빌드의 ID입니다.
- top
-
number
반환할 최대 변경 횟수입니다.
반품
Promise<Change[]>
getDefinition(string, number, number, Date, string[], boolean)
필요에 따라 특정 수정 버전에서 정의를 가져옵니다.
function getDefinition(project: string, definitionId: number, revision?: number, minMetricsTime?: Date, propertyFilters?: string[], includeLatestBuilds?: boolean): Promise<BuildDefinition>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- revision
-
number
검색할 수정 번호입니다. 지정하지 않으면 최신 버전이 반환됩니다.
- minMetricsTime
-
Date
지정한 경우 메트릭을 포함해야 하는 날짜를 나타냅니다.
- propertyFilters
-
string[]
결과에 포함할 속성의 쉼표로 구분된 목록입니다.
- includeLatestBuilds
-
boolean
반품
Promise<BuildDefinition>
getDefinitionMetrics(string, number, Date)
정의를 위한 빌드 메트릭을 얻습니다.
function getDefinitionMetrics(project: string, definitionId: number, minMetricsTime?: Date): Promise<BuildMetric[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- minMetricsTime
-
Date
지표를 계산하는 날짜.
반품
Promise<BuildMetric[]>
getDefinitionProperties(string, number, string[])
정의를 위한 속성을 얻습니다.
function getDefinitionProperties(project: string, definitionId: number, filter?: string[]): Promise<any>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- filter
-
string[]
쉼표로 구분된 속성 목록입니다. 명시가 명시되어 있다면, 이 특정 속성들로 필터링됩니다.
반품
Promise<any>
getDefinitionResources(string, number)
function getDefinitionResources(project: string, definitionId: number): Promise<DefinitionResourceReference[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
반품
Promise<DefinitionResourceReference[]>
getDefinitionRevisions(string, number)
정의의 모든 수정본을 받습니다.
function getDefinitionRevisions(project: string, definitionId: number): Promise<BuildDefinitionRevision[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
반품
Promise<BuildDefinitionRevision[]>
getDefinitions(string, string, string, string, DefinitionQueryOrder, number, string, Date, number[], string, Date, Date, boolean, boolean, string, number, string)
정의 목록을 가져옵니다.
function getDefinitions(project: string, name?: string, repositoryId?: string, repositoryType?: string, queryOrder?: DefinitionQueryOrder, top?: number, continuationToken?: string, minMetricsTime?: Date, definitionIds?: number[], path?: string, builtAfter?: Date, notBuiltAfter?: Date, includeAllProperties?: boolean, includeLatestBuilds?: boolean, taskIdFilter?: string, processType?: number, yamlFilename?: string): Promise<PagedList<BuildDefinitionReference>>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- name
-
string
지정한 경우 이름이 이 패턴과 일치하는 정의를 필터링합니다.
- repositoryId
-
string
리포지토리 ID입니다. 지정된 경우 이 리포지토리를 사용하는 정의를 필터링합니다.
- repositoryType
-
string
지정된 경우 이 형식의 리포지토리가 있는 정의를 필터링합니다.
- queryOrder
- DefinitionQueryOrder
정의를 반환해야 하는 순서를 나타냅니다.
- top
-
number
반환할 최대 정의 수입니다.
- continuationToken
-
string
이 메서드에 대한 이전 호출에서 반환된 연속 토큰으로, 다음 정의 집합을 반환하는 데 사용할 수 있습니다.
- minMetricsTime
-
Date
지정한 경우 메트릭을 포함해야 하는 날짜를 나타냅니다.
- definitionIds
-
number[]
검색할 정의의 ID를 지정하는 쉼표로 구분된 목록입니다.
- path
-
string
지정한 경우 이 폴더 아래의 정의를 필터링합니다.
- builtAfter
-
Date
지정한 경우 이 날짜 이후 빌드가 있는 정의로 필터링합니다.
- notBuiltAfter
-
Date
지정한 경우 이 날짜 이후에 빌드가 없는 정의를 필터링합니다.
- includeAllProperties
-
boolean
전체 정의를 반환해야 하는지 여부를 나타냅니다. 기본적으로 정의의 단순 표현이 반환됩니다.
- includeLatestBuilds
-
boolean
이 정의에 대해 완료된 최신 빌드와 최신 빌드를 반환할지 여부를 나타냅니다.
- taskIdFilter
-
string
지정한 경우 지정된 작업을 사용하는 정의를 필터링합니다.
- processType
-
number
지정된 경우 지정된 프로세스 형식의 정의를 필터링합니다.
- yamlFilename
-
string
지정된 경우 지정된 파일 이름과 일치하는 YAML 정의를 필터링합니다. 이 필터를 사용하려면 includeAllProperties를 true로 설정해야 합니다.
반품
Promise<PagedList<BuildDefinitionReference>>
getDefinitionTags(string, number, number)
정의를 위해 태그를 받아요.
function getDefinitionTags(project: string, definitionId: number, revision?: number): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- revision
-
number
정의 수정 번호입니다. 명시되지 않은 경우, 정의의 최신 개정판을 사용합니다.
반품
Promise<string[]>
getDefinitionYaml(string, number, number, Date, string[], boolean)
정의를 YAML로 변환하며, 특정 개정판에서 선택적으로 가능합니다.
function getDefinitionYaml(project: string, definitionId: number, revision?: number, minMetricsTime?: Date, propertyFilters?: string[], includeLatestBuilds?: boolean): Promise<YamlBuild>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- revision
-
number
검색할 수정 번호입니다. 지정하지 않으면 최신 버전이 반환됩니다.
- minMetricsTime
-
Date
지정한 경우 메트릭을 포함해야 하는 날짜를 나타냅니다.
- propertyFilters
-
string[]
결과에 포함할 속성의 쉼표로 구분된 목록입니다.
- includeLatestBuilds
-
boolean
반품
Promise<YamlBuild>
getFile(string, number, string, string, string)
빌드 파일을 받아요.
function getFile(project: string, buildId: number, artifactName: string, fileId: string, fileName: string): Promise<ArrayBuffer>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
- artifactName
-
string
아티팩트 이름입니다.
- fileId
-
string
파일의 기본 키입니다.
- fileName
-
string
파일이 설정될 이름입니다.
반품
Promise<ArrayBuffer>
getFileContents(string, string, string, string, string, string)
주어진 소스 코드 저장소에 있는 파일의 내용을 가져옵니다.
function getFileContents(project: string, providerName: string, serviceEndpointId?: string, repository?: string, commitOrBranch?: string, path?: string): Promise<string>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
지정이 가능하다면, 벤더별 식별자나 분기를 얻기 위한 저장소 이름도 포함하세요. 여러 리포지토리를 지원하지 않는 공급자에 대해서만 생략할 수 있습니다.
- commitOrBranch
-
string
파일의 내용을 가져오는 커밋 또는 브랜치의 식별자입니다.
- path
-
string
저장소의 루트에 대해 가져올 파일의 경로입니다.
반품
Promise<string>
getFolders(string, string, FolderQueryOrder)
빌드 정의 폴더 목록을 얻습니다.
function getFolders(project: string, path?: string, queryOrder?: FolderQueryOrder): Promise<Folder[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- path
-
string
그 시작점이 바로 그 길입니다.
- queryOrder
- FolderQueryOrder
폴더를 반환해야 하는 순서.
반품
Promise<Folder[]>
getLatestBuild(string, string, string)
필요에 따라 특정 분기로 범위가 지정된 정의에 대한 최신 빌드를 가져옵니다.
function getLatestBuild(project: string, definition: string, branchName?: string): Promise<Build>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definition
-
string
선택적 선행 폴더 경로가 있는 정의 이름 또는 정의 ID
- branchName
-
string
사용할 특정 분기를 나타내는 선택적 매개 변수입니다. 지정하지 않으면 기본 분기가 사용됩니다.
반품
Promise<Build>
getPathContents(string, string, string, string, string, string)
주어진 소스 코드 저장소의 디렉터리 내용을 가져옵니다.
function getPathContents(project: string, providerName: string, serviceEndpointId?: string, repository?: string, commitOrBranch?: string, path?: string): Promise<SourceRepositoryItem[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
지정이 가능하다면, 벤더별 식별자나 분기를 얻기 위한 저장소 이름도 포함하세요. 여러 리포지토리를 지원하지 않는 공급자에 대해서만 생략할 수 있습니다.
- commitOrBranch
-
string
파일의 내용을 가져오는 커밋 또는 브랜치의 식별자입니다.
- path
-
string
저장소의 루트에 대해 리스트로 가는 경로 내용입니다.
반품
Promise<SourceRepositoryItem[]>
getProjectMetrics(string, string, Date)
프로젝트의 빌드 지표를 받습니다.
function getProjectMetrics(project: string, metricAggregationType?: string, minMetricsTime?: Date): Promise<BuildMetric[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- metricAggregationType
-
string
사용할 집계 유형(시간별, 일별)입니다.
- minMetricsTime
-
Date
지표를 계산하는 날짜.
반품
Promise<BuildMetric[]>
getProjectResources(string, string, string)
function getProjectResources(project: string, type?: string, id?: string): Promise<DefinitionResourceReference[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- type
-
string
- id
-
string
반품
Promise<DefinitionResourceReference[]>
getPullRequest(string, string, string, string, string)
소스 제공자로부터 풀 요청 객체를 받습니다.
function getPullRequest(project: string, providerName: string, pullRequestId: string, repositoryId?: string, serviceEndpointId?: string): Promise<PullRequest>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- pullRequestId
-
string
풀 리퀘스트의 벤더별 ID입니다.
- repositoryId
-
string
벤더별 식별자 또는 풀 리퀘스트를 포함하는 저장소 이름.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
반품
Promise<PullRequest>
getResourceUsage()
시스템 내 건설 자원에 대한 정보를 얻습니다.
function getResourceUsage(): Promise<BuildResourceUsage>
반품
Promise<BuildResourceUsage>
getRetentionHistory(number)
프로젝트 컬렉션의 보존 이력을 반환합니다. 여기에는 보존 작업이 이를 정리하지 못하게 하는 맞춤형 보존 규칙이 있는 파이프라인, 보존 유형이 있는 파이프라인별 실행, 보존 유형이 있는 컬렉션이 소유한 파이프라인과 연관된 파일, 파이프라인당 파일 수 등이 포함됩니다.
function getRetentionHistory(daysToLookback?: number): Promise<BuildRetentionHistory>
매개 변수
- daysToLookback
-
number
반품
Promise<BuildRetentionHistory>
getRetentionLease(string, number)
임대 계약 ID와 함께 유지 임대차 세부사항을 반환합니다.
function getRetentionLease(project: string, leaseId: number): Promise<RetentionLease>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- leaseId
-
number
반품
Promise<RetentionLease>
getRetentionLeasesByMinimalRetentionLeases(string, MinimalRetentionLease[])
지정된 최소 유지 임대 계약에 해당하는 모든 임대 계약을 반환합니다
function getRetentionLeasesByMinimalRetentionLeases(project: string, leasesToFetch: MinimalRetentionLease[]): Promise<RetentionLease[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- leasesToFetch
'|'로 구분된 JSON 직렬화된 MinimalRetentionLeases 목록
반품
Promise<RetentionLease[]>
getRetentionLeasesByOwnerId(string, string, number, number)
지정된 주체가 소유한 모든 임대 계약을 반환하며, 선택적으로 단일 파이프라인 정의로 범위가 설정되어 실행됩니다.
function getRetentionLeasesByOwnerId(project: string, ownerId?: string, definitionId?: number, runId?: number): Promise<RetentionLease[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- ownerId
-
string
- definitionId
-
number
특정 파이프라인 정의로 검색을 제한하는 선택적 매개변수입니다.
- runId
-
number
검색을 단일 파이프라인 실행으로 제한하는 선택적 매개변수입니다. definitionId가 필요합니다.
반품
Promise<RetentionLease[]>
getRetentionLeasesByUserId(string, string, number, number)
지정된 사용자가 소유한 모든 임대 계약을 반환하며, 선택적으로 단일 파이프라인 정의로 스코비를 지정하고 실행합니다.
function getRetentionLeasesByUserId(project: string, userOwnerId: string, definitionId?: number, runId?: number): Promise<RetentionLease[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- userOwnerId
-
string
검색할 사용자 ID입니다.
- definitionId
-
number
특정 파이프라인 정의로 검색을 제한하는 선택적 매개변수입니다.
- runId
-
number
검색을 단일 파이프라인 실행으로 제한하는 선택적 매개변수입니다. definitionId가 필요합니다.
반품
Promise<RetentionLease[]>
getRetentionLeasesForBuild(string, number)
특정 건축에 적용되는 모든 유지 임대 계약을 받습니다.
function getRetentionLeasesForBuild(project: string, buildId: number): Promise<RetentionLease[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<RetentionLease[]>
getRetentionSettings(string)
프로젝트의 보존 설정을 얻습니다.
function getRetentionSettings(project: string): Promise<ProjectRetentionSetting>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<ProjectRetentionSetting>
getStatusBadge(string, string, string, string, string, string, string)
<p>정의의 빌드 상태를 얻으며, 선택적으로 특정 브랜치, 스테이지, 작업 및 구성에 스코프를 부여합니다.</p><p p>가 하나 이상이라면 jobName을 지정할 때 stageName 값을 반드시 전달해야 하며, 구성 매개변수를 전달할 때는 동일한 규칙이 두 가지 모두에 적용됩니다.</p>
function getStatusBadge(project: string, definition: string, branchName?: string, stageName?: string, jobName?: string, configuration?: string, label?: string): Promise<string>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definition
-
string
선택 사항으로 선두 폴더 경로가 있는 정의 이름이나 정의 ID를 사용할 수 있습니다.
- branchName
-
string
이 지부의 최신 빌드만 고려하세요. 지정하지 않으면 기본 분기가 사용됩니다.
- stageName
-
string
파이프라인 내에서 이 단계를 사용해 상태를 렌더링하세요.
- jobName
-
string
파이프라인의 한 단계 내에서 이 작업을 사용하여 상태를 렌더링하세요.
- configuration
-
string
이 작업 구성을 사용해 상태를 렌더링하세요
- label
-
string
배지 왼쪽의 기본 텍스트를 대체합니다.
반품
Promise<string>
getTags(string)
프로젝트 내 모든 빌드 태그 목록을 얻습니다.
function getTags(project: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<string[]>
getTemplate(string, string)
특정 빌드 정의 템플릿을 가져옵니다.
function getTemplate(project: string, templateId: string): Promise<BuildDefinitionTemplate>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- templateId
-
string
요청된 템플릿의 ID입니다.
반품
Promise<BuildDefinitionTemplate>
getTemplates(string)
모든 정의 템플릿을 가져옵니다.
function getTemplates(project: string): Promise<BuildDefinitionTemplate[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<BuildDefinitionTemplate[]>
getWorkItemsBetweenBuilds(string, number, number, number)
두 빌드 사이에 모든 작업 아이템을 가져가요.
function getWorkItemsBetweenBuilds(project: string, fromBuildId: number, toBuildId: number, top?: number): Promise<ResourceRef[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- fromBuildId
-
number
첫 번째 빌드의 ID.
- toBuildId
-
number
마지막 빌드의 ID입니다.
- top
-
number
반납해야 할 작업 항목의 최대 수.
반품
Promise<ResourceRef[]>
listBranches(string, string, string, string, string)
해당 소스 코드 저장소의 분기 목록을 얻습니다.
function listBranches(project: string, providerName: string, serviceEndpointId?: string, repository?: string, branchName?: string): Promise<string[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
벤더별 식별자나 저장소 이름을 사용해 분기를 얻으세요. 여러 리포지토리를 지원하지 않는 공급자에 대해서만 생략할 수 있습니다.
- branchName
-
string
제공된다면 구체적으로 확인해야 하는 지점 이름이 있습니다.
반품
Promise<string[]>
listRepositories(string, string, string, string, ResultSet, boolean, string)
소스 코드 저장소 목록을 얻습니다.
function listRepositories(project: string, providerName: string, serviceEndpointId?: string, repository?: string, resultSet?: ResultSet, pageResults?: boolean, continuationToken?: string): Promise<SourceRepositories>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
지정이 가능하다면, 공급업체별 식별자나 단일 저장소 이름으로 받아야 합니다.
- resultSet
- ResultSet
'최상'은 엔드포인트에 가장 적합한 저장소를 의미합니다. 설정되지 않으면 모든 저장소가 반환됩니다. '저장소'가 설정되어 있으면 무시됩니다.
- pageResults
-
boolean
true로 설정하면 결과 집합이 제한되고 쿼리를 계속할 수 있는 연속 토큰을 반환합니다.
- continuationToken
-
string
페이징 결과가 나오면, 이 메서드에 대한 이전 호출로 반환된 연속 토큰으로, 다음 저장소 집합을 반환하는 데 사용할 수 있습니다.
반품
Promise<SourceRepositories>
listSourceProviders(string)
소스 제공업체와 그들의 기능 목록을 받아보세요.
function listSourceProviders(project: string): Promise<SourceProviderAttributes[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<SourceProviderAttributes[]>
listWebhooks(string, string, string, string)
지정된 소스 코드 리포지토리에 설치된 웹후크 목록을 가져옵니다.
function listWebhooks(project: string, providerName: string, serviceEndpointId?: string, repository?: string): Promise<RepositoryWebhook[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
지정된 경우 공급업체별 식별자 또는 웹후크를 가져올 리포지토리의 이름입니다. 여러 리포지토리를 지원하지 않는 공급자에 대해서만 생략할 수 있습니다.
반품
Promise<RepositoryWebhook[]>
queueBuild(Build, string, boolean, string, number, number)
빌드 큐
function queueBuild(build: Build, project: string, ignoreWarnings?: boolean, checkInTicket?: string, sourceBuildId?: number, definitionId?: number): Promise<Build>
매개 변수
- build
- Build
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- ignoreWarnings
-
boolean
- checkInTicket
-
string
- sourceBuildId
-
number
- definitionId
-
number
본문 없이 빌드를 큐에 대기하는 선택적 정의 ID입니다. 유효한 본문이 있는 경우 무시됨
반품
Promise<Build>
restoreDefinition(string, number, boolean)
삭제된 정의를 복원합니다.
function restoreDefinition(project: string, definitionId: number, deleted: boolean): Promise<BuildDefinition>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
복원할 정의의 식별자입니다.
- deleted
-
boolean
false이면 삭제된 정의를 복원합니다.
반품
Promise<BuildDefinition>
restoreWebhooks(DefinitionTriggerType[], string, string, string, string)
지정된 트리거에 대한 웹훅을 주어진 소스 코드 저장소에서 재생성합니다.
function restoreWebhooks(triggerTypes: DefinitionTriggerType[], project: string, providerName: string, serviceEndpointId?: string, repository?: string): Promise<void>
매개 변수
- triggerTypes
웹훅을 복원하는 트리거 유형.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- providerName
-
string
원본 공급자의 이름입니다.
- serviceEndpointId
-
string
지정된 경우 쿼리할 서비스 엔드포인트의 ID입니다. 서비스 엔드포인트를 사용하지 않는 공급자(예: TFVC 또는 TFGit)에 대해서만 생략할 수 있습니다.
- repository
-
string
지정된 경우 공급업체별 식별자 또는 웹후크를 가져올 리포지토리의 이름입니다. 여러 리포지토리를 지원하지 않는 공급자에 대해서만 생략할 수 있습니다.
반품
Promise<void>
saveTemplate(BuildDefinitionTemplate, string, string)
기존 빌드 정의 템플릿을 업데이트합니다.
function saveTemplate(template: BuildDefinitionTemplate, project: string, templateId: string): Promise<BuildDefinitionTemplate>
매개 변수
- template
- BuildDefinitionTemplate
템플릿의 새 버전입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- templateId
-
string
템플릿의 ID입니다.
반품
Promise<BuildDefinitionTemplate>
updateBuild(Build, string, number, boolean)
updateBuildGeneralSettings(PipelineGeneralSettings, string)
파이프라인 일반 설정을 업데이트합니다.
function updateBuildGeneralSettings(newSettings: PipelineGeneralSettings, project: string): Promise<PipelineGeneralSettings>
매개 변수
- newSettings
- PipelineGeneralSettings
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<PipelineGeneralSettings>
updateBuildProperties(JsonPatchDocument, string, number)
빌드의 속성을 업데이트합니다.
function updateBuildProperties(document: JsonPatchDocument, project: string, buildId: number): Promise<any>
매개 변수
- document
- JsonPatchDocument
업데이트할 속성을 설명하는 json 패치 문서입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<any>
updateBuilds(Build[], string)
updateBuildSettings(BuildSettings, string)
빌드 설정을 업데이트합니다.
function updateBuildSettings(settings: BuildSettings, project?: string): Promise<BuildSettings>
매개 변수
- settings
- BuildSettings
새로운 설정들.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<BuildSettings>
updateBuildTags(UpdateTagParameters, string, number)
빌드에서 태그를 추가하거나 제거하는 기능입니다.
function updateBuildTags(updateParameters: UpdateTagParameters, project: string, buildId: number): Promise<string[]>
매개 변수
- updateParameters
- UpdateTagParameters
추가/제거할 태그들.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- buildId
-
number
빌드의 ID입니다.
반품
Promise<string[]>
updateDefinition(BuildDefinition, string, number, number, number, boolean)
기존 빌드 정의를 업데이트합니다. 이 작업이 성공하려면 요청 본문의 "Revision" 속성 값이 기존 빌드 정의와 일치해야 합니다. GET을 사용하여 기존 빌드 정의를 가져오고 필요에 따라 빌드 정의를 수정한 다음 PUT을 사용하여 수정된 정의를 제출하는 것이 좋습니다.
function updateDefinition(definition: BuildDefinition, project: string, definitionId: number, secretsSourceDefinitionId?: number, secretsSourceDefinitionRevision?: number, cancelPausedBuilds?: boolean): Promise<BuildDefinition>
매개 변수
- definition
- BuildDefinition
새로운 정의 버전입니다. 업데이트가 받아들여지려면 기존 정의와 일치해야 "Revision" 속성이 적용됩니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
- secretsSourceDefinitionId
-
number
비밀의 원본으로 사용할 정의의 선택적 ID입니다.
- secretsSourceDefinitionRevision
-
number
비밀 원본 정의의 선택적 수정 버전입니다.
- cancelPausedBuilds
-
boolean
true이면 파이프라인이 일시 중지되거나 비활성화된 상태에서 활성화될 때 일시 중지된 빌드를 취소합니다.
반품
Promise<BuildDefinition>
updateDefinitionProperties(JsonPatchDocument, string, number)
정의를 위해 속성을 업데이트합니다.
function updateDefinitionProperties(document: JsonPatchDocument, project: string, definitionId: number): Promise<any>
매개 변수
- document
- JsonPatchDocument
업데이트할 속성을 설명하는 json 패치 문서입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
반품
Promise<any>
updateDefinitionTags(UpdateTagParameters, string, number)
정의에서 태그를 추가하거나 제거합니다.
function updateDefinitionTags(updateParameters: UpdateTagParameters, project: string, definitionId: number): Promise<string[]>
매개 변수
- updateParameters
- UpdateTagParameters
추가/제거할 태그들.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- definitionId
-
number
정의의 ID입니다.
반품
Promise<string[]>
updateFolder(Folder, string, string)
updateRetentionLease(RetentionLeaseUpdate, string, number)
유지 임대의 기간 또는 파이프라인 보호 상태를 업데이트합니다.
function updateRetentionLease(leaseUpdate: RetentionLeaseUpdate, project: string, leaseId: number): Promise<RetentionLease>
매개 변수
- leaseUpdate
- RetentionLeaseUpdate
유지 임대 계약의 새로운 데이터입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- leaseId
-
number
임대 계약서의 ID를 업데이트하세요.
반품
Promise<RetentionLease>
updateRetentionSettings(UpdateProjectRetentionSettingModel, string)
프로젝트의 보존 설정을 업데이트합니다.
function updateRetentionSettings(updateModel: UpdateProjectRetentionSettingModel, project: string): Promise<ProjectRetentionSetting>
매개 변수
- updateModel
- UpdateProjectRetentionSettingModel
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<ProjectRetentionSetting>
updateStage(UpdateStageParameters, number, string, string)
빌드 단계 업데이트
function updateStage(updateParameters: UpdateStageParameters, buildId: number, stageRefName: string, project?: string): Promise<void>
매개 변수
- updateParameters
- UpdateStageParameters
- buildId
-
number
- stageRefName
-
string
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반품
Promise<void>