jenkins执行脚本报错,但是手动执行脚本,可以通过,所以判定不是脚本的问题
百度了一堆,没说出要点,直接修改组就行了
1653962726911 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilecjdfZV"
Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by array.)
chown -R root:root /run/user/1000/gdm/Xauthority