add some logging for jenkins guard
better pattern matching for jenkins guard