I am using ADO pipelines to deploy a legacy website. Build pipeline retrieves the website directory tree from Git, publishes it as is to the pipeline and the release pipeline executes a batch file that copies the files to a network share using ROBOCOPY with flags to only process the changed files.
The problem is that the Publish task in the build pipeline resets all the timestamps and ROBOCOPY ends up copying the entire 5,000+ file web site, which takes almost 10 minutes.
Is there any way to publish artifacts without changing the timestamp on the files?