By default, the source code files will be checked out to the directory "Build.SourcesDirectory
" on the agent machine. The artifact files output from the build also are in this directory.
By default, the directory "Build.ArtifactStagingDirectory
" is empty, the source code files and build artifact files will not be automatically added/generated into this directory.
Before archive a ZIP file from the directory "Build.ArtifactStagingDirectory
", you should use the Copy Files task to copy the files which you want to archive from the directory "Build.SourcesDirectory
" into the directory "Build.ArtifactStagingDirectory
".
For more details, you can see view this document.

