Jaypore CI

> Jaypore CI: Minimal, Offline, Local CI system.
Log | Files | Refs | README

commit fa9f0746d6cae58233a24c028c915e458cbcc887
parent 17271b30a080625915f42eb54c5cf646e4f3c188
Author: arjoonn <arjoonn@noreply.localhost>
Date:   Thu, 16 Feb 2023 06:14:50 +0000

report_docker_errors (!40)

Branch auto created by JayporeCI

```jayporeci
╔ 🔴 : JayporeCI       [sha ec2aeff135]
┏━ build_and_test
┃
┃ 🟢 : JciEnv          [4026bcdb]   0: 1
┃ 🟢 : Jci             [d4f026ca]   0: 6       ❮-- ['JciEnv']
┃ 🟢 : black           [17e8c42d]   0: 0       ❮-- ['JciEnv']
┃ 🟢 : pylint          [930bf09a]   0: 7       ❮-- ['JciEnv']
┃ 🟢 : pytest          [4e5b85e3]   0: 2 64%   ❮-- ['JciEnv']
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┏━ Publish
┃
┃ 🟢 : DockerHubJci    [9fb8ef8b]   1: 1
┃ 🟢 : DockerHubJcienv [2a35bce2]   1:27
┃ 🟢 : PublishDocs     [2a7f0a9b]   0:33
┃ 🔴 : PublishPypi     [4c65766c]   0: 5
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```

Co-authored-by: arjoonn sharma <arjoonn@midpathsoftware.com>
Reviewed-on: https://gitea.midpathsoftware.com/midpath/jaypore_ci/pulls/40

Diffstat:
MREADME.md | 1-
Mjaypore_ci/executors/docker.py | 10++++++----
Mpyproject.toml | 2+-
3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -2,7 +2,6 @@ ![JayporeCI](docs/source/_static/logo.png) - Documentation is at : https://www.jayporeci.in ## If you are reading this on github diff --git a/jaypore_ci/executors/docker.py b/jaypore_ci/executors/docker.py @@ -16,11 +16,13 @@ def __check_output__(cmd): Common arguments that need to be provided while calling subprocess.check_output """ - return ( - subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) - .decode() - .strip() + proc = subprocess.run( + cmd, check=False, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE ) + if proc.returncode != 0: + print(proc.stdout.decode()) + raise TriggerFailed(cmd) + return proc.stdout.decode().strip() class Docker(Executor): diff --git a/pyproject.toml b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "jaypore_ci" -version = "0.2.7" +version = "0.2.8" description = "" authors = ["arjoonn sharma <arjoonn.94@gmail.com>"]