I am moving specific file (e.g. 5 json file) from one directory to another directory in same repository. I was able to extract the file and published to Devops successfully, but those specific file didn't upload to main root directory of Azure Devops where all other files are present.
Steps performed-
- Download specific file from old repository as a zip folder on local machine.
- Then upload the same zip file to new Azure Devops repository where I want to copy those file. PFA,Screenshot 1. Created a pipeline which includes the following task activity:
-


Used the extract Files in built task and used the same zip file in archive file pattern and destination folder - $(BuildSourceDirectory)
- Copy all the extracted files from $(BuildSourceDirectory) to $(BuildArtifactStagingDirectory).
- Publish artifacts from $(BuildArtifactStagingDirectory) to 'azure pipeline' artifact publish location. Till this point, artifact has been generated and published successfully and I can see specific file extracted there (e.g. 5 file). PFA, Screenshot 2.
PFA, Screenshot 3 where I want to copy a specific file.
source (zip file)= main root directory of Azure Devops Repository XX
Target = main root directory of Azure Devops Repository XX