我浏览了 HockeyApp 网站上的教程,用于创建 HockeyApp 构建任务并将其上传到 Visual Studio Team Services (VSTS)。当我排队一个新的构建时,它会从 GitHub 克隆我的存储库,构建它并发布工件。
当 VSTS 去执行我的 HockeyApp 构建任务时,它失败了。
Files found locally 299,
Files evaluated 299,
Files left to evaluate 0.,
Files created without upload 0,
Files uploaded 297
Files left to process 2
---------------------------
Created 0 files without uploading content. Total files processed 299
Uploaded artifact 'C:\a\1\a\drop' to container folder 'drop' of build 42.
Associated artifact 13 with build 42
******************************************************************************
Finishing task: PublishBuildArtifacts
******************************************************************************
******************************************************************************
Starting task: Deploy /drop/Applications/OpenTasks.WindowsUWP/bin/x86/Debug/OpenTasks.exe to HockeyApp
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\HockeyApp\0.9.18\bootstrapper.ps1
Cannot bind argument to parameter 'Name' because it is an empty string.
C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\HockeyApp\0.9.18\hockeyApp.js:216
throw new Error(errorMessage);
^
Error: Could not decode the hockey endpoint. Please ensure you are running the latest agent (min version 0.3.0)
at getEndpointDetails (C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\HockeyApp\0.9.18\hockeyApp.js:216:15)
at Object.<anonymous> (C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\HockeyApp\0.9.18\hockeyApp.js:19:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
******************************************************************************
Finishing task: HockeyApp
******************************************************************************
Task HockeyApp failed. This caused the job to fail. Look at the logs for the task for more details.
Worker Worker-c371305d-0d72-4f8b-b809-724a1a9316ea finished running job c371305d-0d72-4f8b-b809-724a1a9316ea
******************************************************************************
Finishing Build
******************************************************************************
我的项目结构如下
Root
- readme.md
- Source
- Applications
- WindowsUWP
- Mobile
- iOS
- Droid
- Shared
- Services
- Domain
我能够构建项目并看到工件被部署
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\PublishBuildArtifacts\1.0.5\PublishBuildArtifacts.ps1
Preparing artifact content in staging folder C:\a\1\a...
Copying all files from C:\a\1\s\Source\Applications\OpenTasks.Shared\bin to C:\a\1\a\drop\Applications\OpenTasks.Shared\bin
Copying all files from C:\a\1\s\Source\Applications\OpenTasks.Shared.Tests\bin to C:\a\1\a\drop\Applications\OpenTasks.Shared.Tests\bin
Copying all files from C:\a\1\s\Source\Applications\OpenTasks.WindowsUWP\bin to C:\a\1\a\drop\Applications\OpenTasks.WindowsUWP\bin
Copying all files from C:\a\1\s\Source\CloudProviders\Provider.Dropbox\bin to C:\a\1\a\drop\CloudProviders\Provider.Dropbox\bin
Copying all files from C:\a\1\s\Source\Domain\DomainLogic\bin to C:\a\1\a\drop\Domain\DomainLogic\bin
Copying all files from C:\a\1\s\Source\Domain\DomainLogic.Tests\bin to C:\a\1\a\drop\Domain\DomainLogic.Tests\bin
Total files copied: 299.
在我的 VSTS 构建定义中,我添加了 HockeyApp 任务,并使用我的 HockeyApp API 令牌和来自 HockeyApp 的 AppId 对其进行了配置。
二进制路径是根据输出放置路径设置的,并附加了 \x86\debug\opentask.exe。我尝试过使用以下组合(以及更多,但我现在不记得它们了)
/Source/Applications/OpenTasks.WindowsUWP
./
/drop
/Source
/drop/Applications/OpenTasks.WindowsUWP/bin
这是我安装和上传 HockeyApp 任务的输出。
我似乎无法将应用程序部署到 HockeyApp。
我不确定真正的错误是否是:
Cannot bind argument to parameter 'Name' because it is an empty string.
或者如果这是此错误的结果
Error: Could not decode the hockey endpoint. Please ensure you are running the latest agent (min version 0.3.0)
不管怎样,我不知道如何解决它。我给了它我的 HockeyApp api 令牌和应用程序 ID,并尝试了大量不同的二进制路径。昨晚我在 VSTS 上烧毁了 25% 的免费构建,试图让我的构建部署。我究竟做错了什么?
编辑
我正在运行托管的构建代理。