Fill in starttime/stoptime for cached builds
This commit is contained in:
parent
6c0577b226
commit
9ac363d32a
|
@ -105,8 +105,8 @@ sub doBuild {
|
||||||
|
|
||||||
my $isCachedBuild = 1;
|
my $isCachedBuild = 1;
|
||||||
my $outputCreated = 1; # i.e., the Nix build succeeded (but it could be a positive failure)
|
my $outputCreated = 1; # i.e., the Nix build succeeded (but it could be a positive failure)
|
||||||
my $startTime = 0;
|
my $startTime = time();
|
||||||
my $stopTime = 0;
|
my $stopTime = undef;
|
||||||
|
|
||||||
my $buildStatus = 0; # = succeeded
|
my $buildStatus = 0; # = succeeded
|
||||||
|
|
||||||
|
@ -118,8 +118,6 @@ sub doBuild {
|
||||||
$isCachedBuild = 0;
|
$isCachedBuild = 0;
|
||||||
|
|
||||||
# Do the build.
|
# Do the build.
|
||||||
$startTime = time();
|
|
||||||
|
|
||||||
my $thisBuildFailed = 0;
|
my $thisBuildFailed = 0;
|
||||||
my $someBuildFailed = 0;
|
my $someBuildFailed = 0;
|
||||||
|
|
||||||
|
@ -309,7 +307,7 @@ sub doBuild {
|
||||||
, iscachedbuild => $isCachedBuild
|
, iscachedbuild => $isCachedBuild
|
||||||
, buildstatus => $buildStatus
|
, buildstatus => $buildStatus
|
||||||
, starttime => $startTime
|
, starttime => $startTime
|
||||||
, stoptime => $stopTime
|
, stoptime => $stopTime // time()
|
||||||
, errormsg => $errormsg
|
, errormsg => $errormsg
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue