From a4432abe85faf8523bc1b441d6f4ab6a2e6e5a73 Mon Sep 17 00:00:00 2001 From: Zach Taylor Date: Wed, 26 Apr 2017 20:35:27 -0400 Subject: [PATCH] Adding gitsha as a step kwarg and as a step env for https://github.com/servo/saltfs/issues/597 --- buildbot/master/files/config/factories.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildbot/master/files/config/factories.py b/buildbot/master/files/config/factories.py index ff77cc72..7122b3f8 100644 --- a/buildbot/master/files/config/factories.py +++ b/buildbot/master/files/config/factories.py @@ -230,6 +230,11 @@ def make_step(self, command): else: step_desc += [arg] + # Add Git SHA for tracking testing failures + if step_class == steps.Test: + step_env['GIT_SHA'] = self.getProperty('got_revision') + step_kwargs['gitSha'] = self.getProperty('got_revision') + if step_class != steps.ShellCommand: step_kwargs['description'] = "running" step_kwargs['descriptionDone'] = "ran"