I cannot get DevOps to deploy using a folder, it is giving me this error:
[error]Error: No package found with specified pattern: d:\a\1\a*.deploy.cmd
Check if the package mentioned in the task is published as an artifact in the build or a previous stage and downloaded in the current job.
Azure App Service Deploy Task documentation says this about the Package argument:
File path to the package, or to a folder containing App Service contents generated by MSBuild, or to a compressed zip or war file.
this is my publish task:
- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: false
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
modifyOutputPath: true
projects: |
src/Company/Project.csproj
and my deploy task:
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'PublishProfile'
PublishProfilePath: '$(System.DefaultWorkingDirectory)/src/Company/Properties/PublishProfiles/WebDeploy.pubxml'
PublishProfilePassword: '$(password)'
Package: '$(Build.ArtifactStagingDirectory)/Company'
Why is it looking for a deploy.cmd? What am I doing wrong?