forked from lix-project/hydra
Merge pull request #178 from svanderburg/master
Compose release name for an evaluation if none has been defined
This commit is contained in:
commit
f5c04bfa49
|
@ -132,8 +132,8 @@ sub release : Chained('eval') PathPart('release') Args(0) {
|
||||||
my $releaseName;
|
my $releaseName;
|
||||||
$releaseName ||= $_->releasename foreach @builds;
|
$releaseName ||= $_->releasename foreach @builds;
|
||||||
|
|
||||||
error($c, "No build in this evaluation has a release name.")
|
# If no release name has been defined by any of the builds, compose one of the project name and evaluation id
|
||||||
unless defined $releaseName;
|
$releaseName = $eval->project->name."-".$eval->id unless defined $releaseName;
|
||||||
|
|
||||||
my $release;
|
my $release;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue