--- a/pipelines/pipeline.py Mon Jul 25 15:30:08 2016 -0500
+++ b/pipelines/pipeline.py Mon Jul 25 17:06:03 2016 -0500
@@ -29,6 +29,7 @@
def _build_script(self, step):
fd, filename = tempfile.mkstemp(prefix='pipeline', suffix='.sh')
+ filename = os.path.realpath(filename) with os.fdopen(fd, "w") as ofp:
content = " && \\\n".join(step["script"])
@@ -63,7 +64,7 @@
for container in self.steps:
commands.append(self.get_command(step))
--- a/pipelines/vcs.py Mon Jul 25 15:30:08 2016 -0500
+++ b/pipelines/vcs.py Mon Jul 25 17:06:03 2016 -0500
@@ -1,5 +1,6 @@
@@ -15,7 +16,8 @@
for _, cmd in _VCSS.iteritems():
command = cmd.format(path)
- branch = subprocess.check_output(command.split())
+ branch = subprocess.check_output(command.split(), + stderr=open(os.devnull, 'w')) except subprocess.CalledProcessError: