-1
我是新来的这个TFS BUILD,目前我有供应商应用程序没有源代码我只有像(Bin,image,aspx文件和DLL )为发布的文件,我需要复制所有文件供应商给我并粘贴到目标位置。TFS构建:如何配置后构建事件
Below is the configuration i done in TFS build definition.
1. Source setting tab
a) Source Control folder - Project Location
b) build agent folder - $(SourceDir)
2. Build defaults
a) Build controller - as defined my client.
b) staging location - my dev server path(\\devserver\foldername)
3. Process tab
a) Process parameter
i) required
- Items to build
* project to build - what should i give here whether the solution file or bat file manually created by me.
2) post build script - i mapped my bat file.
Bat file commands.
cd /d %2
md "VEMS_PROD_Sample"
cd webdeploy
xcopy *.* %2\VEMS_PROD_26082016_V1 /E
如果我上面的设置文件不会被复制以下是日志运行构建我得到
2016-08-26 10:27:59,796 INFO
C:\Windows\system32>cd /d "D:\8228\Binaries"
D:\8228\Binaries>md "VEMS_PROD_Sample"
D:\8228\Binaries>cd webdeploy
D:\8228\Binaries>xcopy *.* "D:\8228\Binaries"\VEMS_PROD_26082016_V1 /E
0 File(s) copied
==================================================
2016-08-26 10:27:59,834 ERROR
The system cannot find the path specified.
Cannot perform a cyclic copy