hydra: removed need for HYDRA_BUILD_BASEURL env variable

This commit is contained in:
Rob Vermaas 2010-10-08 10:45:42 +00:00
parent 0491ea3455
commit 5e0e9e058d

View file

@ -31,13 +31,13 @@ sub sendTwitterNotification {
return unless (defined $ENV{'TWITTER_USER'} && defined $ENV{'TWITTER_PASS'}); return unless (defined $ENV{'TWITTER_USER'} && defined $ENV{'TWITTER_PASS'});
my $addURL = defined $ENV{'HYDRA_BUILD_BASEURL'}; my $addURL = defined $config{'base_uri'};
my $jobName = $build->project->name . ":" . $build->jobset->name . ":" . $build->job->name; my $jobName = $build->project->name . ":" . $build->jobset->name . ":" . $build->job->name;
my $status = $build->resultInfo->buildstatus == 0 ? "SUCCEEDED" : "FAILED"; my $status = $build->resultInfo->buildstatus == 0 ? "SUCCEEDED" : "FAILED";
my $system = $build->system; my $system = $build->system;
my $duration = ($build->resultInfo->stoptime - $build->resultInfo->starttime) . " seconds"; my $duration = ($build->resultInfo->stoptime - $build->resultInfo->starttime) . " seconds";
my $url = $ENV{'HYDRA_BUILD_BASEURL'}."/".$build->id ; my $url = $config{'base_uri'}."/build/".$build->id ;
my $nt = Net::Twitter::Lite->new( my $nt = Net::Twitter::Lite->new(
username => $ENV{'TWITTER_USER'}, username => $ENV{'TWITTER_USER'},