No package found with specified pattern: D:\a\1\a\func-liststarter-api-seg-dev-001.zip<br/>Check if the package mentioned in the task is published as

Viewed 29

buildtest.yaml file is below
parameters:

- name: solution_filename
  type: string
  default: '**/*.sln'    
stages:
- stage: BuildTest
  displayName: 'Build & Validation Stage'
  variables:
    buildPlatform: 'Any CPU'
    buildConfiguration: 'Release'
    solution: ${{parameters.solution_filename}}
  jobs:
  - job: Build
    displayName: Build Full Solution 
    dependsOn: []
    pool:
      vmImage: $(poolImage)
    steps:
    - template: ./ci-and-pr.yaml
      parameters:
        solution_filename: $(solution)
        solution_build_configuration: $(buildConfiguration)
    - task: PublishPipelineArtifact@1
      inputs:
        path: '$(Build.ArtifactStagingDirectory)'
        artifact: 'drop'
        
    - task: CopyFiles@2
      inputs:
      targetFolder: '$(Build.ArtifactStagingDirectory)'   
    - task: PublishBuildArtifacts@1
     displayName: 'Publish Artifact: drop'
      inputs:
      PathtoPublish: '$(Build.ArtifactStagingDirectory)'

ci-and-pr.yaml is below    
parameters:

- name: solution_filename
  type: string
  default: '**/*.sln'
# solution_build_configuration - (Optional) The build configuration within the solution that should be invoked. 
# Default is Release but can be overwritten if you want to do say a Debug build
- name: solution_build_configuration
  type: string
  default: Release   
- name: solution_target_platform
  type: string
  default: 'Any CPU'

steps:
# Bootstrap the build
- template: ./bootstrap-build.yaml

- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    command: restore
    restoreSolution: ${{parameters.solution_filename}}
    feedsToUse: config
    nugetConfigPath: $(Build.SourcesDirectory)/nuget.config
    includeNuGetOrg: true

- task: DotNetCoreCLI@1
  displayName: Build    
  inputs:
    command: build
    projects: ${{parameters.solution_filename}}
    arguments: '--configuration $(buildConfiguration)'

- task: DotNetCoreCLI@1
  displayName: 'Publish Solution'
  inputs: 
    command: publish
    publishWebProjects: false
    projects: ${{parameters.solution_filename}}
    arguments: "--configuration ${{ parameters.solution_build_configuration }} --output $(Build.ArtifactStagingDirectory)"

deploApp.yaml file below    
parameters:
- name: AzureServiceConnection
  type: string
#- name: AzureRegion
#  type: string
#- name: SubscriptionId
#  type: string
- name: AppName
  type: string    
steps:
- task: AzureFunctionApp@1
  displayName: "Azure Function App Deployment"
  inputs:
    azureSubscription: ${{parameters.AzureServiceConnection}}
    appName: ${{parameters.AppName}}
    appType: 'functionApp'
    package: $(Pipeline.Workspace)/**/*.zip
    deploymentMethod: runFromPackage

Getting the error while running the pipeline " No package found with specified pattern: D:\a\1\a\func-liststarter-api-seg-dev-001.zip
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" No package found with specified pattern: D:\a\1\a\func-liststarter-api-seg-dev-001.zip
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

0 Answers
Related