Fix sudo bug
Add extra logging for pipeline triggering