Refactored Jenkins test script. Exclude PEP8 white space wanrings.