Add send information about the farm client revision back to the server
[buildfarm-client.git] / run_build
index e8ec50a62014aabc175d6c6fea2789bef8e9a926..952e4a91207cd88d41e03ea31716e5ab05367b00 100755 (executable)
--- 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']);
 }