repair docs job in groovy for jenkins