changed code to fit Jenkins environment