Reputation: 195
Step 1: I have pushed all files for my website on TFS. The files are shown in the below screenshot after getting pushed on TFS:
Screenshot: https://i.sstatic.net/l6zlT.png
Step 2: I have created a Build definition and generated the artifact, then I have created a Release definition and after successful deployment i am able to see some of the Artifacts file on "Physical Location" (C:\inetpub\wwwroot\TestVSTSWebsite) of my computer.
Requirement: But what i want is to get my all files on the defined "Physical Location" that i pushed on TFS.
As for now i am getting the following artifact files on my physical location as shown in the below screenshots:
Screenshot[1]: https://i.sstatic.net/614U3.png
Screenshot[2]: https://i.sstatic.net/lBD14.png
Edited: I have used the Copy Files task in the build definition with all the fields defined in the below screenshot:
Screenshot: https://i.sstatic.net/r6eXk.png
But even after successful build the the files are not visible when i use the Copy File task in my Release definition to deploy the project and when i click on the [...] near the Source Folder i get the following folders as show in below screenshot without the contents of Target folder that i defined in the Build definition.
Screenshot: https://i.sstatic.net/76mP2.png
Any help will be greatly appreciated. Thanks in advance.
Upvotes: 1
Views: 107
Reputation: 31083
It seems you want to have all your source in the "Physical Location". You need to copy all files in $(build.sourcesdirectory)
to $(build.artifactstagingdirectory)
in your Build definition.
$(build.sourcesdirectory)
to $(build.artifactstagingdirectory)
:Upvotes: 1