Merge pull request #770 from NixOS/remove-jobs

Remove the Jobs table
This commit is contained in:
Eelco Dolstra
2020-06-01 10:25:41 +02:00
committed by GitHub
26 changed files with 102 additions and 442 deletions

View File

@ -402,13 +402,6 @@ sub checkBuild {
my $build;
$db->txn_do(sub {
my $job = $jobset->jobs->update_or_create({
name => $jobName,
jobset_id => $jobset->id,
project => $jobset->project,
jobset => $jobset->name,
});
# Don't add a build that has already been scheduled for this
# job, or has been built but is still a "current" build for
# this job. Note that this means that if the sources of a job
@ -452,11 +445,12 @@ sub checkBuild {
}
# Add the build to the database.
$build = $job->builds->create(
$build = $jobset->builds->create(
{ timestamp => $time
, project => $jobset->project
, jobset => $jobset->name
, jobset_id => $jobset->id
, job => $jobName
, description => null($buildInfo->{description})
, license => null($buildInfo->{license})
, homepage => null($buildInfo->{homepage})