summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--ick2/actionenvs.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 4120623..6471cc2 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
Version 0.37+git, not yet released
----------------------------------
+* Fix bug in worker-manager to set `BUILD_NUMBER` in environment when
+ running command in container.
Version 0.37, released 2018-04-15
----------------------------------
diff --git a/ick2/actionenvs.py b/ick2/actionenvs.py
index e09366b..b434079 100644
--- a/ick2/actionenvs.py
+++ b/ick2/actionenvs.py
@@ -163,4 +163,6 @@ class ContainerEnvironment(ActionEnvironment):
'--bind', bind,
'--chdir', '/workspace',
]
+ for key in self._extra_env: # pragma: no cover
+ prefix.extend(['-E', '{}={}'.format(key, self._extra_env[key])])
return self.host_runcmd(prefix + argv)