From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 3 Nov 2016 08:18:30 +0000 (+0100) Subject: Add send information about the farm client revision back to the server X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/d105ee7b8bc1fd73a0a33fe11c33cf126e11223c Add send information about the farm client revision back to the server --- diff --git a/run_build b/run_build index e8ec50a..952e4a9 100755 --- a/run_build +++ b/run_build @@ -1428,6 +1428,11 @@ sub get_script_config_dump orig_env => $orig_env, }; delete $conf->{secret}; + + if ($conf->{scm} eq 'git') { + chomp($conf->{farm}{revision} = `git describe --tags --always --dirty=+`); + } + $Data::Dumper::Sortkeys = 1; return Data::Dumper->Dump([$conf],['Script_Config']); }