0
votes

Is is possible to create a Continuous Integration "Build" Step in TFS2015 that simply copies a checked-in file to some file share location? I would like to automatically copy any .xml files checked in to a TFVC project repository to a specified file share location?

Seems like it should be possible with the new TFS2015 Build System.

2

2 Answers

1
votes

It looks like you'd like to treat all XML files as build artifacts. There's a special build step for this called "Publish Build Artifacts". The following image illustrates how it might look for your case:

enter image description here

0
votes

Yes, it is possible via adding a PowerShell build step. You need to define the PowerShell script to copy xml files to the shared folder.

An easy way is to call xcopy.exe command in the PowerShell file:

c:\windows\system32\xcopy.exe "sourcefile" "\\sharedfoler"