log git apply output in case of error
This commit is contained in:
parent
90e7224ba9
commit
515f086ba2
1 changed files with 2 additions and 0 deletions
|
@ -260,6 +260,8 @@ class ApplyPatch:
|
|||
proc = subprocess.run('git apply -', input=patch, shell=True, text=True,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
if proc.returncode != 0:
|
||||
logging.info(proc.stdout)
|
||||
logging.error(proc.stderr)
|
||||
message = f":bk-status-failed: Failed to apply [{patch_file}](artifact://{patch_file}).\n\n"
|
||||
if self.revision_id != revision['id']:
|
||||
message += f"**Attention! D{revision['id']} is one of the dependencies of the target " \
|
||||
|
|
Loading…
Reference in a new issue