This is not a question but more like a finding.
When I use JNLP to connect Jenkins slave and use default user “ubuntu”, I have to manually
echo $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
So that to get snapcraft works.
But when I do this locally
lxc oem-iot-bionic-1 bash
sudo su - ubuntu
/snap/bin is default included in the $PATH
echo $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
I am using
It is easy to make the mistake. Does anyone know why such differences?