ServiceFabricPowerShell@1 - Service Fabric PowerShell v1 작업

이 작업을 사용하여 Azure Service Fabric 클러스터 연결의 컨텍스트 내에서 PowerShell 스크립트를 실행합니다. Service Fabric 클러스터 연결이 초기화된 PowerShell 세션에서 PowerShell 명령 또는 스크립트를 실행합니다.

Syntax

# Service Fabric PowerShell v1
# Run a PowerShell script in the context of an Azure Service Fabric cluster connection.
- task: ServiceFabricPowerShell@1
  inputs:
    clusterConnection: # string. Alias: serviceConnectionName. Required. Cluster Service Connection. 
    ScriptType: 'FilePath' # 'FilePath' | 'InlineScript'. Required. Script Type. Default: FilePath.
    #ScriptPath: # string. Optional. Use when ScriptType = FilePath. Script Path. 
    #Inline: # string. Optional. Use when ScriptType = InlineScript. Inline Script. 
    #ScriptArguments: # string. Script Arguments.
# Service Fabric PowerShell v1
# Run a PowerShell script within the context of an Azure Service Fabric cluster connection.
- task: ServiceFabricPowerShell@1
  inputs:
    clusterConnection: # string. Alias: serviceConnectionName. Required. Cluster Service Connection. 
    ScriptType: 'FilePath' # 'FilePath' | 'InlineScript'. Required. Script Type. Default: FilePath.
    #ScriptPath: # string. Optional. Use when ScriptType = FilePath. Script Path. 
    #Inline: # string. Optional. Use when ScriptType = InlineScript. Inline Script. 
    #ScriptArguments: # string. Script Arguments.

입력

clusterConnection - 클러스터 서비스 연결
입력 별칭: serviceConnectionName. string. 필수 요소.

지정된 PowerShell 스크립트가 실행될 때 설정된 서비스 연결이 있는 Azure Service Fabric 클러스터를 지정합니다.


ScriptType - 스크립트 유형
string. 필수 요소. 허용되는 값: FilePath (스크립트 파일 경로), InlineScript (인라인 스크립트). 기본값은 FilePath입니다.

스크립트가 작업에서 파일 또는 인라인으로 제공되는지 여부를 지정합니다.


ScriptPath - 스크립트 경로
string. 선택 사항입니다. 을 사용할 때 ScriptType = FilePath사용합니다.

실행할 PowerShell 스크립트의 경로를 지정합니다. 와일드카드 및 변수를 포함할 수 있습니다. 예: $(system.defaultworkingdirectory)/**/drop/projectartifacts/**/docker-compose.yml.

참고

작성 파일 결합은 이 작업의 일부로 지원되지 않습니다.


Inline - 인라인 스크립트
string. 선택 사항입니다. 을 사용할 때 ScriptType = InlineScript사용합니다. 기본값은 # You can write your PowerShell scripts inline here. \n# You can also pass predefined and custom variables to this script using arguments입니다.

빌드 에이전트에서 실행할 PowerShell 명령을 지정합니다. PowerShell 작업에 대해 자세히 알아보세요.


ScriptArguments - 스크립트 인수
string.

PowerShell에 전달할 추가 매개 변수를 지정합니다. 서수 또는 명명된 매개 변수일 수 있습니다.


작업 제어 옵션

모든 작업에는 작업 입력 외에 제어 옵션이 있습니다. 자세한 내용은 컨트롤 옵션 및 일반적인 작업 속성을 참조하세요.

출력 변수

없음

설명

이 작업을 사용하여 Azure Service Fabric 클러스터 연결의 컨텍스트 내에서 PowerShell 스크립트를 실행합니다. Service Fabric 클러스터 연결이 초기화된 PowerShell 세션에서 PowerShell 명령 또는 스크립트를 실행합니다.

Service Fabric

  • 이 작업은 Service Fabric 설치를 사용하여 Service Fabric 클러스터에 연결하고 배포합니다.
  • 빌드 에이전트의 Azure Service Fabric Core SDK.

요구 사항

요구 사항 Description
파이프라인 유형 YAML, 클래식 빌드, 클래식 릴리스
실행 중 에이전트, DeploymentGroup
요청 자체 호스팅 에이전트에는 이 작업을 사용하는 작업을 실행하기 위한 다음 요구 사항과 일치하는 기능이 있어야 합니다. Cmd
Capabilities 이 작업은 작업의 후속 작업에 대한 요구를 충족하지 않습니다.
명령 제한 사항 모두
설정 가능한 변수 모두
에이전트 버전 1.95.0 이상
작업 범주 유틸리티