I currently am creating a build of our Ranorex project through Jenkins and would like to change the manner in which we do it, but cannot figure out how. We currently are having to check-in all our generated ranorex *.cs files which I would like to remove from subversion. The problem is that the build on Jenkins fails then, so I'm wondering how I need to setup my Jenkins project so that it can properly pull down the Ranorex solution from subversion and build the Ranorex projects without checking in any generated *.cs files.
I'm using the latest version of Ranorex 3.3 and executing a windows batch script within my Jenkins project as such:
Code: Select all
call %WORKSPACE%\Ranorex_TacView\build.bat
Code: Select all
cd %WORKSPACE%\Ranorex_TacView
echo ### Building %PROJECTNAME%###
%systemroot%\Microsoft.NET\Framework\v3.5\MSBuild.exe %FOLDERNAME%\%PROJECTNAME%.csproj /property:Configuration=Release
cd %WORKSPACE%\Ranorex_TacView\%FOLDERNAME%\bin\Release
"C:\Program Files\7-Zip\7z.exe" a -tzip ..\%PROJECTNAME%.zip *
The output from Jenkins when trying to build a project file without the cs files is:
PrepareForBuild:
Creating directory "bin\Release\".
Creating directory "obj\x86\Release\".
CSC : error CS2001: Source file 'Recording1.cs' could not be found
CSC : error CS2001: Source file 'Recording2.cs' could not be found
Done Building Project "ProjectFile.csproj" (default targets) -- FAILED.
Build FAILED.
"ProjectFile.csproj" (default target) (1) ->
(CoreCompile target) ->
CSC : error CS2001: Source file 'Recording1.cs' could not be found
CSC : error CS2001: Source file 'Recording2.cs' could not be found
0 Warning(s)
2 Error(s)
Any help would be greatly appreciated.