upgrade dependency to newer jenkins version

and try to be as backward compatible as possible