How to configure multiple delphi versions on jenkins node?

We have a Delphi 2010 setup, as described here , and the jobs are working fine.

Now we need to add Delphi XE5 to this node. The problem is with variables BDSand BDSCOMMONDIR.

They are set as global variables indicating, for example, BDSpoints to C:\Program Files (x86)\Embarcadero\RAD Studio\7.0.

For XE5, there BDSmust be a value C:\Program Files (x86)\Embarcadero\RAD Studio\12.0.

So how to configure multiple versions of delphi?

+4
source share
1 answer

I use batch scripts for every build job.

script . Delphi rsvars.bat ( Delphi, MSBuild Delphi ..).

, script MSBuild ( , MSBuild Jenkins).

, :

set BDS=C:\PathToDelphiLib
set FrameworkDir=C:\Windows\Microsoft.NET\Framework\v3.5
set FrameworkVersion=v3.5
set PATH=%FrameworkDir%;%BDS%\bin;%PATH%
set LANGDIR=EN
// set other variables

echo @@@ building the project
MSBuild.exe %WORKSPACE%\YourApp\YourApp.dproj "/p:Win32LibraryPath=$(BDS)\lib" /target:Build /p:config=%AConfigVariable% /p:Platform=Win32 /p:DCC_ExeOutput=%OutputDirVariable% /verbosity:quiet

Jenkins Windows

call %WORKSPACE%\YourApp\ContinuousIntegration\DelphiXE2_Build_Release.bat

, . . .

+5

All Articles