diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-15 20:56:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-15 20:56:35 +0300 |
commit | dd30bfa3894777218d9ac7a001ecfaa04760f66a (patch) | |
tree | d15cdfc36dd5db7381f362f803f26431be27f7f7 | |
parent | a80ee7c59af2db24382258230fc166574fa7ebc5 (diff) | |
download | ick2-dd30bfa3894777218d9ac7a001ecfaa04760f66a.tar.gz |
Fix: pass in BUILD_NUMBER to containers
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ick2/actionenvs.py | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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) |