Modified some scripts for Jenkins