首页 > 解决方案 > 八达通部署通过错误

问题描述

我在章鱼中有一份工作,其任务是使用 azure 上的 powershell 脚本将几个文件夹从一个远程服务器复制到另一台远程服务器。在 powershell 中,我在我的存储库中调用了一个 nodejs 脚本。它在我的本地机器上运行良好,在章鱼服务器上也是如此。但它带有一些警告,如下所示,

13:22:29   Error    |       Alive[################################################################]  100.0000%
13:22:29   Error    |       Finished[#############################################################]  100.0000%
13:22:29   Error    |       Alive[################################################################]  100.0000%
13:22:29   Error    |       Finished[#############################################################]  100.0000%
13:22:29   Error    |       Alive[################################################################]  100.0000%
13:22:29   Error    |       Finished[#############################################################]  100.0000%
13:22:29   Error    |       WARNING: uploading C:\Octopus\Work\20200610122124-353927-1979\dist\content\14d214dc-6afc-8581-efb8-fad4a024bb05
13:22:29   Error    |       Alive[################################################################]  100.0000%
13:22:29   Error    |       Finished[#############################################################]  100.0000%
13:22:29   Error    |       WARNING: uploading C:\Octopus\Work\20200610122124-353927-1979\dist\content\1f5e7cc3-ce40-cc82-0963-fd044ce161a1
13:22:29   Error    |       Alive[################################################################]  100.0000%
13:22:29   Error    |       Finished[#############################################################]  100.0000%
13:22:29   Error    |       WARNING: uploading C:\Octopus\Work\20200610122124-353927-1979\dist\content\22683897-1a40-cfb4-e59a-7be7637a44d2
13:22:29   Error    |       Alive[################################################################]  100.0000%

我的PowerShell脚本片段,

if($SourceContext -and $destinationTenantAccess)
 {
   #Install required libraries to run the migration script
   npm i
   #Execute migration script
   node ./scripts/migrate --sourceEndpoint $SourceEndpoint --destEndpoint $DestinationEndpoint --publishEndpoint $DestPublishEndpoint --sourceId $sourceTenantAccess.Id --sourceKey $sourceTenantAccess.PrimaryKey --destId $destinationTenantAccess.Id --destKey $destinationTenantAccess.PrimaryKey
 }
 else
 {
     Write-Error ( "Unable to find SAS Tokens, Developer Portal migration Failed." )
 }

我使用的迁移脚本来自:https ://github.com/Azure/api-management-developer-portal

请注意,这并没有使我的构建失败,但我想删除这些错误。任何线索如何解决它?

标签: octopus-deploy

解决方案


推荐阅读