I agree with most of this. I end up with a lot of
sh 'make all'
sh 'make test'
In my `Jenkinsfile`, but there's not a great way to test things locally.