Wednesday, January 12, 2022

Publishing build artifacts failed with an error: Not found PathtoPublish: D:\a\1\s\Website - Sitecore Next.jss (Headless) Deployment to web apps

 I got another error which is Publishing build artifacts failed with an error: Not found PathtoPublish: D:\a\1\s\Website


I found the issue was related to the correct path configuration in copy and upload azure pipeline

Copy step should have the correct source path/folder 

and destination path should have syntax like $(Build.ArtifactStagingDirectory)\Sitecore

and the publish artifacts should have path like this 

$(Build.ArtifactStagingDirectory)\Sitecore\cm

Copy pipeline


Upload Pipeline




After the correct configuration, I was able to resolve the issue


No comments:

Post a Comment