From 5e0e9e058d9f97b117bb33fe478d970dc0626d58 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 8 Oct 2010 10:45:42 +0000 Subject: [PATCH] hydra: removed need for HYDRA_BUILD_BASEURL env variable --- src/script/hydra_build.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/hydra_build.pl.in b/src/script/hydra_build.pl.in index 223844ab..2b1b9582 100755 --- a/src/script/hydra_build.pl.in +++ b/src/script/hydra_build.pl.in @@ -31,13 +31,13 @@ sub sendTwitterNotification { 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 $status = $build->resultInfo->buildstatus == 0 ? "SUCCEEDED" : "FAILED"; my $system = $build->system; 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( username => $ENV{'TWITTER_USER'},