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

后端 未结 9 1427
太阳男子
太阳男子 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:57

    In my case (build .sln with c# project from azure git) the build was saving the package in D:\a\1\a\ folder (instead of r1\a) and I wasn't able to edit the build steps in the UI so I edited the newly added azure-pipelines.yml file and added one more task at the very end:

    - task: PublishBuildArtifacts@1
    

    This copies the .zip package to a "drop" location (r1/a) which the Release Pipeline expects.

    ​And now the Release Pipeline is finding the file in r1/a folder.

    0 讨论(0)
  • 2021-01-04 08:02

    You can't use wildcards for folder names unfortunately, only for file names. If you're using a 'Copy Files' build task you can put this value in 'Source Folder':
    D:\a\r1\a\

    and this value in 'Contents':
    **\*.zip

    Or you can put the full file directories with *.zip. Good luck.

    0 讨论(0)
  • 2021-01-04 08:03

    If you are using "Azure App Service Deploy" task, set the "Package or folder" path to: $(System.DefaultWorkingDirectory)\InnovationInABox-CI\drop\s\build.

    0 讨论(0)
提交回复
热议问题