From ede4a1035373654feebc7e60dcab2927138c911d Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Sat, 23 Aug 2014 16:20:58 +0200 Subject: [PATCH] Compose release name for an evaluation if none has been defined --- src/lib/Hydra/Controller/JobsetEval.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/JobsetEval.pm b/src/lib/Hydra/Controller/JobsetEval.pm index 5014bfe2..65ae7fb0 100644 --- a/src/lib/Hydra/Controller/JobsetEval.pm +++ b/src/lib/Hydra/Controller/JobsetEval.pm @@ -132,8 +132,8 @@ sub release : Chained('eval') PathPart('release') Args(0) { my $releaseName; $releaseName ||= $_->releasename foreach @builds; - error($c, "No build in this evaluation has a release name.") - unless defined $releaseName; + # If no release name has been defined by any of the builds, compose one of the project name and evaluation id + $releaseName = $eval->project->name."-".$eval->id unless defined $releaseName; my $release;