Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
706 views
in Technique[技术] by (71.8m points)

reactjs - No package found with specified pattern: D:a 1a***.zip

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 the release definition and it downloads the files correctly also:

2018-08-10T16:29:18.5241580Z Downloading artifact drop from: https://xx.visualstudio.com//_apis/resources/Containers/711976?itemPath=drop&isShallow=true&api-version=4.1-preview.4
2018-08-10T16:29:18.5252684Z Downloading drop/s/build/asset-manifest.json to D:a
1aInnovationInABox-CIdropsuildasset-manifest.json
2018-08-10T16:29:18.5253850Z Downloaded drop/s/build/asset-manifest.json to D:a
1aInnovationInABox-CIdropsuildasset-manifest.json
2018-08-10T16:29:18.5338277Z Downloading drop/s/build/favicon.png to D:a
1aInnovationInABox-CIdropsuildfavicon.png
2018-08-10T16:29:18.5338720Z Downloaded drop/s/build/favicon.png to D:a
1aInnovationInABox-CIdropsuildfavicon.png
2018-08-10T16:29:19.5191236Z Downloading drop/s/build/index.html to D:a
1aInnovationInABox-CIdropsuildindex.html
2018-08-10T16:29:19.5191520Z Downloaded drop/s/build/index.html to D:a
1aInnovationInABox-CIdropsuildindex.html
2018-08-10T16:29:19.5195415Z Downloading drop/s/build/manifest.json to D:a
1aInnovationInABox-CIdropsuildmanifest.json
2018-08-10T16:29:19.5195775Z Downloaded drop/s/build/manifest.json to D:a
1aInnovationInABox-CIdropsuildmanifest.json
2018-08-10T16:29:19.5198280Z Downloading drop/s/build/service-worker.js to D:a
1aInnovationInABox-CIdropsuildservice-worker.js
2018-08-10T16:29:19.5198598Z Downloaded drop/s/build/service-worker.js to D:a
1aInnovationInABox-CIdropsuildservice-worker.js
2018-08-10T16:29:19.5704236Z Downloading drop/s/build/css/ionicons.min.css to D:a
1aInnovationInABox-CIdropsuildcssionicons.min.css
2018-08-10T16:29:19.5725284Z Downloaded drop/s/build/css/ionicons.min.css to D:a
1aInnovationInABox-CIdropsuildcssionicons.min.css
2018-08-10T16:29:19.5833575Z Downloading drop/s/build/iconfont/iconfont.svg to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.svg
2018-08-10T16:29:19.5868415Z Downloading drop/s/build/fonts/ionicons.eot to D:a
1aInnovationInABox-CIdropsuildfontsionicons.eot
2018-08-10T16:29:19.5901623Z Downloading drop/s/build/fonts/ionicons.svg to D:a
1aInnovationInABox-CIdropsuildfontsionicons.svg
2018-08-10T16:29:19.5922072Z Downloaded drop/s/build/iconfont/iconfont.svg to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.svg
2018-08-10T16:29:19.5967502Z Downloading drop/s/build/iconfont/iconfont.ttf to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.ttf
2018-08-10T16:29:19.5990580Z Downloaded drop/s/build/fonts/ionicons.eot to D:a
1aInnovationInABox-CIdropsuildfontsionicons.eot
2018-08-10T16:29:19.6014585Z Downloading drop/s/build/iconfont/iconfont.eot to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.eot
2018-08-10T16:29:19.6041800Z Downloaded drop/s/build/iconfont/iconfont.ttf to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.ttf
2018-08-10T16:29:19.6082471Z Downloading drop/s/build/fonts/ionicons.woff to D:a
1aInnovationInABox-CIdropsuildfontsionicons.woff
2018-08-10T16:29:19.6355639Z Downloading drop/s/build/fonts/ionicons.ttf to D:a
1aInnovationInABox-CIdropsuildfontsionicons.ttf
2018-08-10T16:29:19.6356035Z Downloaded drop/s/build/fonts/ionicons.svg to D:a
1aInnovationInABox-CIdropsuildfontsionicons.svg
2018-08-10T16:29:19.6609672Z Downloaded drop/s/build/iconfont/iconfont.eot to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.eot
2018-08-10T16:29:19.6614749Z Downloading drop/s/build/images/icons/icon-128x128.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-128x128.png
2018-08-10T16:29:19.6649976Z Downloaded drop/s/build/images/icons/icon-128x128.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-128x128.png
2018-08-10T16:29:19.6691472Z Downloaded drop/s/build/fonts/ionicons.woff to D:a
1aInnovationInABox-CIdropsuildfontsionicons.woff
2018-08-10T16:29:19.6715380Z Downloading drop/s/build/images/icons/icon-144x144.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-144x144.png
2018-08-10T16:29:19.6721599Z Downloaded drop/s/build/fonts/ionicons.ttf to D:a
1aInnovationInABox-CIdropsuildfontsionicons.ttf
2018-08-10T16:29:19.6730634Z Downloaded drop/s/build/images/icons/icon-144x144.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-144x144.png
2018-08-10T16:29:19.6925986Z Downloading drop/s/build/images/icons/icon-192x192.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-192x192.png
2018-08-10T16:29:19.6932585Z Downloaded drop/s/build/images/icons/icon-192x192.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-192x192.png
2018-08-10T16:29:19.7051155Z Downloading drop/s/build/images/icons/icon-384x384.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-384x384.png
2018-08-10T16:29:19.7068272Z Downloaded drop/s/build/images/icons/icon-384x384.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-384x384.png
2018-08-10T16:29:19.7128194Z Downloading drop/s/build/static/css/main.1338bde0.css to D:a
1aInnovationInABox-CIdropsuildstaticcssmain.1338bde0.css
2018-08-10T16:29:19.7136566Z Downloading drop/s/build/images/icons/icon-72x72.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-72x72.png
2018-08-10T16:29:19.7139811Z Downloaded drop/s/build/images/icons/icon-72x72.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-72x72.png
2018-08-10T16:29:19.7210596Z Downloaded drop/s/build/static/css/main.1338bde0.css to D:a
1aInnovationInABox-CIdropsuildstaticcssmain.1338bde0.css
2018-08-10T16:29:19.7331736Z Downloading drop/s/build/static/js/1.f6d2865a.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs1.f6d2865a.chunk.js
2018-08-10T16:29:19.7336557Z Downloaded drop/s/build/static/js/1.f6d2865a.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs1.f6d2865a.chunk.js
2018-08-10T16:29:19.7384208Z Downloading drop/s/build/static/js/2.194ad0ec.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs2.194ad0ec.chunk.js
2018-08-10T16:29:19.7388897Z Downloaded drop/s/build/static/js/2.194ad0ec.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs2.194ad0ec.chunk.js
2018-08-10T16:29:19.7493081Z Downloading drop/s/build/images/icons/icon-512x512.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-512x512.png
2018-08-10T16:29:19.7505060Z Downloaded drop/s/build/images/icons/icon-512x512.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-512x512.png
2018-08-10T16:29:19.7521694Z Downloading drop/s/build/images/icons/icon-96x96.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-96x96.png
2018-08-10T16:29:19.7524304Z Downloaded drop/s/build/images/icons/icon-96x96.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-96x96.png
2018-08-10T16:29:19.7531569Z Downloading drop/s/build/images/icons/icon-152x152.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-152x152.png
2018-08-10T16:29:19.7544109Z Downloading drop/s/build/iconfont/iconfont.woff to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.woff
2018-08-10T16:29:19.7561190Z Downloaded drop/s/build/images/icons/icon-152x152.png to D:a
1aInnovationInABox-CIdropsuildimagesiconsicon-152x152.png
2018-08-10T16:29:19.7583131Z Downloaded drop/s/build/iconfont/iconfont.woff to D:a
1aInnovationInABox-CIdropsuildiconfonticonfont.woff
2018-08-10T16:29:19.7615220Z Downloading drop/s/build/static/js/4.0230ee4e.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs4.0230ee4e.chunk.js
2018-08-10T16:29:19.7620680Z Downloaded drop/s/build/static/js/4.0230ee4e.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs4.0230ee4e.chunk.js
2018-08-10T16:29:19.8139663Z Downloading drop/s/build/static/media/sign.adf5846b.jpg to D:a
1aInnovationInABox-CIdropsuildstaticmediasign.adf5846b.jpg
2018-08-10T16:29:19.8209000Z Downloaded drop/s/build/static/media/sign.adf5846b.jpg to D:a
1aInnovationInABox-CIdropsuildstaticmediasign.adf5846b.jpg
2018-08-10T16:29:19.8445251Z Downloading drop/s/build/static/media/uk.bc48afcc.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediauk.bc48afcc.svg
2018-08-10T16:29:19.8451360Z Downloaded drop/s/build/static/media/uk.bc48afcc.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediauk.bc48afcc.svg
2018-08-10T16:29:19.9315367Z Downloading drop/s/build/static/media/france.bcd389de.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediafrance.bcd389de.svg
2018-08-10T16:29:19.9316203Z Downloading drop/s/build/static/media/spain.6a9dc11f.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediaspain.6a9dc11f.svg
2018-08-10T16:29:19.9316588Z Downloaded drop/s/build/static/media/france.bcd389de.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediafrance.bcd389de.svg
2018-08-10T16:29:19.9317287Z Downloaded drop/s/build/static/media/spain.6a9dc11f.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediaspain.6a9dc11f.svg
2018-08-10T16:29:19.9430066Z Downloading drop/s/build/static/media/italy.604345b4.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediaitaly.604345b4.svg
2018-08-10T16:29:19.9430433Z Downloaded drop/s/build/static/media/italy.604345b4.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediaitaly.604345b4.svg
2018-08-10T16:29:20.0800791Z Downloading drop/s/build/static/js/3.06bbf4d1.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs3.06bbf4d1.chunk.js
2018-08-10T16:29:20.0801318Z Downloaded drop/s/build/static/js/3.06bbf4d1.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs3.06bbf4d1.chunk.js
2018-08-10T16:29:20.0962282Z Downloading drop/s/build/static/js/0.cdfd5bd5.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs.cdfd5bd5.chunk.js
2018-08-10T16:29:20.0962659Z Downloaded drop/s/build/static/js/0.cdfd5bd5.chunk.js to D:a
1aInnovationInABox-CIdropsuildstaticjs.cdfd5bd5.chunk.js
2018-08-10T16:29:20.1118659Z Downloading drop/s/build/static/js/main.03f3e98f.js to D:a
1aInnovationInABox-CIdropsuildstaticjsmain.03f3e98f.js
2018-08-10T16:29:20.1541007Z Downloaded drop/s/build/static/js/main.03f3e98f.js to D:a
1aInnovationInABox-CIdropsuildstaticjsmain.03f3e98f.js
2018-08-10T16:29:20.1566610Z Downloading drop/s/build/static/media/china.4e4d59b7.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediachina.4e4d59b7.svg
2018-08-10T16:29:20.1569167Z Downloaded drop/s/build/static/media/china.4e4d59b7.svg to D:a
1aInnovationInABox-CIdropsuildstaticmediachina.4e4d59b7.svg
2018-08-10T16:29:21.1552541Z Total Files: 35, Processed: 35, Skipped: 0, Failed: 0, Download time: 3.288 secs, Download size: 1.320MB
2018-08-10T16:29:21.1844380Z Successfully downloaded artifacts to D:a
1a/InnovationInABox-CI
2018-08-10T16:29:21.1897267Z ##[section]Finishing: Download artifact - InnovationInABox-CI

But the next step, is to deploy to an Azure web app: but I get this error:

2018-08-10T16:29:21.8347426Z Got connection details for Azure App Service:'uiapp'
2018-08-10T16:29:24.0708659Z ##[error]Error: No package found with specified pattern: D:a
1a***.zip
2018-08-10T16:29:26.8772211Z Successfully updated deployment History at https://xxx.scm.azurewebsites.net/api/deployments/81533918564296
2018-08-10T16:29:26.8855771Z ##[section]Finishing: Deploy Azure App Service

How can I copy all those files from the build folder (which are not in a .zip file) to Azure webapp?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In my case (build .sln with c# project from azure git) the build was saving the package in D:a1a folder (instead of r1a) 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...