Updated build script to user regex for the junit test job