Add tests of GitPublisher honoring env values

Attempting to duplicate [JENKINS-24786] from an automated test.  Does not
duplicate the bug.  Shows that GitPublisher honors some environment
variables.