use WORKSPACE if it exists for jenkins