【发布时间】:2021-01-25 11:20:41
【问题描述】:
我看到很多关于这个问题的帖子。我想创建从 Azure DevOps 到 Azure App Service 的管道。
在 DevOps 中,我创建了如下管道:
pool:
name: Azure Pipelines
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: |
**/PowerBIDashboard.csproj
**/PowerBIDashboard.Tests.csproj
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: '**/*.csproj'
arguments: '-o publish_output'
- task: ArchiveFiles@2
displayName: 'Archive Files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/publish_output'
includeRootFolder: false
archiveFile: '$(System.DefaultWorkingDirectory)/$(Build.BuildId).zip'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/$(Build.BuildId).zip'
condition: succeededOrFailed()
在 Release 中,我将工件部署到应用服务。在 App Service 的 Kudu 中,我可以看到所有文件。
我删除了应用服务并重新部署,结果相同。然后我尝试直接从 Visual Studio 进行部署,但出现另一个错误。
然后,我检查了 Kudu 中的日志,我在 eventlog.xml 中发现了这些错误:
<Events>
<Event>
<System>
<Provider Name="ZipFS"/>
<EventID>0</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2020-10-10T16:24:34Z"/>
<EventRecordID>-1126954890</EventRecordID>
<Channel>Application</Channel>
<Computer>RD281878C97A29</Computer>
<Security/>
</System>
<EventData>
<Data>Failed to open siteversion.txt. ZipFS setup failed. Error: 0x80070003</Data>
</EventData>
</Event>
<Event>
<System>
<Provider Name="ZipFS"/>
<EventID>0</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2020-10-10T16:24:34Z"/>
<EventRecordID>-1126954875</EventRecordID>
<Channel>Application</Channel>
<Computer>RD281878C97A29</Computer>
<Security/>
</System>
<EventData>
<Data>Failed to copy zip from remote source.</Data>
</EventData>
</Event>
</Events>
我哪里做错了?
【问题讨论】:
-
嗨@Enrico。这张票有更新吗?如果答案可以给你一些帮助,请随时告诉我。只是提醒this。
标签: azure azure-devops azure-web-app-service