VSTS - 应用中心 - Yaml - 无法找到端点

时间:2018-03-06 04:50:34

标签: yaml azure-devops visual-studio-app-center

我正在尝试使用yaml设置我的构建定义。 我正在使用AppCenterDistribute task。它需要和端点到MS App Center。我按照tutorial设置了一个。{
但是,我收到了错误消息:

“步骤输入serverEndpoint引用无法找到的端点App Center。服务端点不存在或未被授权使用。”

enter image description here

“App Center”是我在VSTS中设置的端点的名称。这里是yaml的任务:

- task: AppCenterDistribute@0
    displayName: 'iOS Deployment'
    inputs:
        serverEndpoint: 'App Center'
        appSlug: 'myname/myapp'
        appFile: ''#path to ipa
        symbolsDsymFiles: ''#path to dsym zip
        symbolsIncludeParentDirectory: false
        releaseNotesInput: 'release notes'

端点存在(见下面的截图)

enter image description here

如果我手动创建“构建定义”(即没有yaml),则下拉列表中会显示该端点(见下文)。

enter image description here

顺便说一下,为了生成我的yaml,我在门户上创建了一个我不保存的游乐场构建定义,并且右上角有“View Yaml”按钮。见下文。

enter image description here

3 个答案:

答案 0 :(得分:0)

您应首先将您的App Center添加为VSTS中的端点。

如果您之前未在VSTS中添加App Center,则可以单击App Center Distribute任务中的New按钮。然后输入连接名称和App Center Api令牌。

enter image description here

enter image description here

在App Center Distribute任务中选择端点连接。指定App Slug和发行说明等后,您可以对构建进行排队。

更多详细信息,您可以参考Deploy VSTS Builds with App Center

答案 1 :(得分:0)

问题在于我创建了“应用程序中心”。在vsts中的不同项目中的端点,而不是yaml构建定义中的端点。因此,vsts理所当然地抱怨找不到该端点。

答案 2 :(得分:0)

实际上,我不得不将服务连接的名称从“ Visual Studio App Center”更改为“ VSAC”。它不喜欢名称中的空格。这样称呼它。 serverEndpoint:“ VSAC”