Add send information about the farm client revision back to the server
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 3 Nov 2016 08:18:30 +0000 (09:18 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 4 Nov 2016 07:10:34 +0000 (08:10 +0100)
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']);
 }