【发布时间】:2019-04-09 21:24:44
【问题描述】:
我在 Azure DevOps 中有以下发布和部署任务:
variables:
buildConfiguration: 'Release'
buildPlatform: 'any cpu'
azureSubscription: 'subscription'
azureAppType: 'Web App on Windows'
webAppName: 'webapp'
steps:
# Other tasks
- task: DotNetCoreCLI@2
displayName: 'Publish'
inputs:
command: publish
publishWebProjects: false
arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: true
- task: AzureRmWebAppDeployment@4
displayName: 'Deploy'
inputs:
package: $(System.DefaultWorkingDirectory)/**/MyProj.zip
azureSubscription: '$(azureSubscription)'
appType: '$(azureAppType)'
webAppName: '$(webAppName)'
发布任务成功,但部署任务出现错误:
[error]Error: No package found with specified pattern: /home/vsts/work/1/s/**/MyProj.zip
我做错了什么?
【问题讨论】:
标签: asp.net-core azure-devops asp.net-core-2.0