No output in Jenkins jobs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
We run snapcraft in a Jenkins pipeline job, and we ran into the issue that the snapcraft command was failing, but no output was given, so it was impossible to see what went wrong.
I'm not quite sure what's going on there, but if I pipe the output to 'cat', e.g. 'snapcraft version | cat', I do see the output in the jenkins job, but if I just have 'snapcraft version', no output is seen.
I see failures redirecting the output of snapcraft if I ssh to a lxd container as well:
maas-devel:~> snapcraft version > foo
Error in sys.excepthook:
Traceback (most recent call last):
File "/snap/
click.
File "/snap/
file.flush()
PermissionError: [Errno 13] Permission denied
Original exception was:
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
run_
File "/snap/
return self.main(*args, **kwargs)
File "/snap/
rv = self.invoke(ctx)
File "/snap/
return _process_
File "/snap/
return ctx.invoke(
File "/snap/
return callback(*args, **kwargs)
File "/snap/
click.
File "/snap/
file.flush()
PermissionError: [Errno 13] Permission denied
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
PermissionError: [Errno 13] Permission denied