Compose release name for an evaluation if none has been defined

This commit is contained in:
Sander van der Burg 2014-08-23 16:20:58 +02:00
parent 319e053368
commit ede4a10353

View file

@ -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;