Hello community,
We have a pipeline created to generate the RetailDeployablePackage.zip in Azure Devops, however, we are receiving an error in the PowerShell step that copy the final RetailDeployablePackage of the build to the ArtifactStagingDirectory, we are following thhis official documentation on the creation of the pipeline:
docs.microsoft.com/.../sdk-build-pipeline
The explicit error is:
Copy-Item : Cannot find path 'D:\a\1\s\RetailSDK\Packages\RetailDeployablePackage\RetailDeployablePackage.zip' because
it does not exist.
Even if the Build of the SDK is OK (without errors),the RetailDeployablePackage.zip file is not created for the MSBuild step.
If we compile the same Retail SDK thru command line (msbuild /p:Configuration=Release) the end result of this command is the creation of the .zip file, but in the pipeline is not happening the same...
Any suggestion?
Thanks
Hello Juliet,
We finally found the error: In the official documentation the path to copy the .zip package is as following:
# Script to copy the Retail deployable package with Build number.
Copy-Item "$(Build.SourcesDirectory)\RetailSDK\Packages\RetailDeployablePackage\RetailDeployablePackage.zip" -Destination
"$(Build.ArtifactStagingDirectory)\RetailDeployablePackage_$(Build.BuildNumber).zip"
But in fact is not necessary to have the folder root of the SDK in the path (RetailSDK Folder), so to avoid this issue the command should be:
Copy-Item "$(Build.SourcesDirectory)\Packages\RetailDeployablePackage\RetailDeployablePackage.zip" -Destination
"$(Build.ArtifactStagingDirectory)\RetailDeployablePackage_$(Build.BuildNumber).zip"
Thank you for your support!
Hi Diego,
Suggest you open a support ticket to Microsoft Support and ask for help.
Thanks,
Juliet Zhu
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156