AppCenterDistribute@1 - App Center 分发 v1 任务

使用此任务通过 App Center 和 Visual Studio App Center 将应用生成分发给测试人员和用户。

重要

此任务已弃用,将于 2024 年 1 月 31 日停用。 使用 AppCenterDistribute@3

使用此任务通过 App Center 和 Visual Studio App Center 将应用生成分发给测试人员和用户。

此任务已弃用;使用 AppCenterDistribute@3

使用此任务通过 App Center 和 Visual Studio App Center 将应用生成分发给测试人员和用户。

语法

# App Center distribute v1
# Distribute app builds to testers and users via Visual Studio App Center.
- task: AppCenterDistribute@1
  inputs:
    serverEndpoint: # string. Required. App Center service connection. 
    appSlug: # string. Required. App slug. 
    appFile: # string. Alias: app. Required. Binary file path. 
    releaseNotesOption: 'input' # 'input' | 'file'. Alias: releaseNotesSelection. Required. Create release notes. Default: input.
    releaseNotesInput: # string. Required when releaseNotesSelection = input. Release notes. 
    #releaseNotesFile: # string. Required when releaseNotesSelection = file. Release notes file. 
    #isMandatory: false # boolean. Require users to update to this release. Default: false.
    #distributionGroupId: # string. Alias: destinationId. Destination ID. 
  # Symbols
    #symbolsOption: 'Apple' # 'Apple'. Alias: symbolsType. Symbols type. Default: Apple.
    #symbolsPath: # string. Optional. Use when symbolsType == AndroidNative || symbolsType = Windows. Symbols path. 
    #symbolsPdbFiles: '**/*.pdb' # string. Alias: pdbPath. Optional. Use when symbolsType = UWP. Symbols path (*.pdb). Default: **/*.pdb.
    #symbolsDsymFiles: # string. Alias: dsymPath. Optional. Use when symbolsType = Apple. dSYM path. 
    #symbolsMappingTxtFile: # string. Alias: mappingTxtPath. Optional. Use when symbolsType = AndroidJava. Mapping file. 
    #symbolsIncludeParentDirectory: # boolean. Alias: packParentFolder. Include all items in parent folder.

输入

serverEndpoint - App Center 服务连接
string。 必填。

选择 Visual Studio App Center 的服务连接。 若要创建一个,请单击 Manage 链接并创建新的服务连接。


appSlug - App slug(应用别名)
string。 必填。

应用 slug 采用 {username}/{app_identifier}格式。 若要查找应用的 {username}{app_identifier},请单击应用中心 的名称。 生成的 URL 采用 https://appcenter.ms/users/**{username}**/apps/**{app_identifier}**格式。 如果使用组织,则应用 slug 的格式 {orgname}/{app_identifier}


appFile - 二进制文件路径
输入别名app. string。 必填。

要发布的 APK 或 IPA 文件的存储库根目录的相对路径。


symbolsOption - 符号类型
输入别名symbolsType. string。 允许的值:Apple。 默认值:Apple

包括用于在 App Center 诊断中接收符号化堆栈跟踪的符号文件。


symbolsPath - 符号路径
string。 可选。 当 symbolsType == AndroidNative || symbolsType = Windows时使用。

存储库根目录到符号文件夹的相对路径。


symbolsPdbFiles - 符号路径 (*.pdb)
输入别名pdbPath. string。 可选。 当 symbolsType = UWP时使用。 默认值:**/*.pdb

存储库根目录到 .pdb 符号文件的相对路径。 路径可能包含通配符


symbolsDsymFiles - dSYM 路径
输入别名dsymPath. string。 可选。 当 symbolsType = Apple时使用。

存储库根目录到 dSYM 文件夹的相对路径。 路径可能包含通配符


symbolsMappingTxtFile - 映射文件
输入别名mappingTxtPath. string。 可选。 当 symbolsType = AndroidJava时使用。

从存储库根目录到 Android mapping.txt 文件的相对路径。


symbolsIncludeParentDirectory - 在父文件夹中包括所有项目
输入别名packParentFolder. boolean

上传所选符号文件或文件夹以及同一父文件夹中的所有其他项目。 这是 React Native 应用所必需的。


releaseNotesOption - 创建发行说明
输入别名releaseNotesSelection. string。 必填。 允许的值:input(输入发行说明)、file(选择发行说明文件)。 默认值:input

发行说明附加到该版本,并显示在安装页上的测试人员。


releaseNotesInput - 发行说明
stringreleaseNotesSelection = input时是必需的。

此版本的发行说明。


releaseNotesFile - 发行说明文件
stringreleaseNotesSelection = file时是必需的。

选择包含此版本的发行说明的 UTF-8 编码文本文件。


isMandatory - 要求用户更新到此版本
boolean。 默认值:false

应用中心分发 SDK 要求进行更新。 系统会自动提示测试人员更新。


distributionGroupId - 目标 ID
输入别名destinationId. string

将接收生成版本的分发存储或组的 ID。 将它留空以使用默认组。


任务控制选项

除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性

输出变量

没有。

注解

此任务已弃用。 使用 AppCenterDistribute@3

要求

要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 没有
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 2.144.0 或更高版本
任务类别 部署
要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 没有
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 所有支持的代理版本。
任务类别 部署