Autobuild script for jenkins

Jenkins can be configured to run ./jenkins for its build step.
Then build/test commands can be modified by changing this script.
two fixes from nikita
fix plot3 color