Add jenkins.sh

This is based on the existing jenkins.sh in specialist-publisher [1],
which builds for all branches, and merges master into the current branch 
before running tests.