I managed to get this job with a work pipeline. This is a kind of hacking, but it works.
The program I'm trying to build uses $/Department/Framework/Main
(as workspace\Framework
) and $/Department/Products/TheProgram/Main
(as workspace\TheProgram
).
I created three jobs in Jenkins, each "descending" from the other:
- Framework-Get: running the source code normally on the TFS
$/Department/Framework/Main
project path. There is no assembly step. - Execution of the Get-program: normal start of the source code in the path of the TFS product
$/Department/Products/TheProgram
. There is no assembly step. - TheProgram-Build: No source control. But the steps to build the xcopy source are from the two previous steps. Then you can run the normal build step.
The first step in building Program-Build is the windows command:
REM =====================================
REM First Get the Framework folder:
rmdir / s / q Framework
mkdir framework
xcopy / y / q / e .. \ .. \ Framework-Get \ Workspace \ Framework Framework
REM =====================================
REM Then Get the TheProgram Folder:
rmdir / s / q TheProgram
mkdir TheProgram
xcopy / y / q / e .. \ .. \ TheProgram-Get \ Workspace \ TheProgram TheProgram
The second build step was a simple call to ant. But you can use msbuild or whatever you like here.
source share