@@ -66,6 +66,8 @@ class Build
6666 public ?string $ OSVersion = null ;
6767 public ?string $ CompilerName = null ;
6868 public ?string $ CompilerVersion = null ;
69+ public ?string $ SourceDirectory = null ;
70+ public ?string $ BinaryDirectory = null ;
6971 public int $ BuildErrorCount ;
7072 public int $ TestFailedCount ;
7173
@@ -364,6 +366,8 @@ public function FillFromId($buildid): void
364366 $ this ->OSVersion = $ model ->osversion ;
365367 $ this ->CompilerName = $ model ->compilername ;
366368 $ this ->CompilerVersion = $ model ->compilerversion ;
369+ $ this ->SourceDirectory = $ model ->sourcedirectory ;
370+ $ this ->BinaryDirectory = $ model ->binarydirectory ;
367371
368372 $ subprojectid = $ this ->QuerySubProjectId ($ buildid );
369373 if ($ subprojectid ) {
@@ -1715,7 +1719,12 @@ public function UpdateBuild($buildid, $newErrors, $newWarnings): void
17151719 if ($ this ->CompilerVersion !== null && $ this ->CompilerVersion !== $ build ->compilerversion ) {
17161720 $ fields_to_update ['compilerversion ' ] = $ this ->CompilerVersion ;
17171721 }
1718-
1722+ if ($ this ->SourceDirectory !== null && $ this ->SourceDirectory !== $ build ->sourcedirectory ) {
1723+ $ fields_to_update ['sourcedirectory ' ] = $ this ->SourceDirectory ;
1724+ }
1725+ if ($ this ->BinaryDirectory !== null && $ this ->BinaryDirectory !== $ build ->binarydirectory ) {
1726+ $ fields_to_update ['binarydirectory ' ] = $ this ->BinaryDirectory ;
1727+ }
17191728 if (!empty ($ fields_to_update )) {
17201729 $ build ->update ($ fields_to_update );
17211730 }
@@ -2213,6 +2222,8 @@ public function AddBuild(int $nbuilderrors = -1, int $nbuildwarnings = -1): bool
22132222 'osversion ' => $ this ->OSVersion ,
22142223 'compilername ' => $ this ->CompilerName ,
22152224 'compilerversion ' => $ this ->CompilerVersion ,
2225+ 'sourcedirectory ' => $ this ->SourceDirectory ,
2226+ 'binarydirectory ' => $ this ->BinaryDirectory ,
22162227 ])->id ;
22172228 $ build_created = true ;
22182229 $ this ->AssignToGroup ();
0 commit comments