No package found with specified pattern: D:\a\r1\a\**\*.zip

后端 未结 9 1520
太阳男子
太阳男子 2021-01-04 07:25

I created a build definition in vsts with npm build and then I copy the build folder to the drop location.

The build pipeline is working fine

Then I created

9条回答
  •  青春惊慌失措
    2021-01-04 07:49

    In my case (react app deployed as static content to app service) I needed to add a step to archive the build directory before publishing it:

    - task: ArchiveFiles@2
      inputs:
        rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build' 
        includeRootFolder: false 
        archiveType: 'zip'
        archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
    
    - publish: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
      artifact: '$(Build.BuildId)'
    
    

提交回复
热议问题