Make it possible to specify the git commit sha in the cunfiguration

We have some Jenkins jobs that do not checkout directly from git, but instead copy artifacts from other jobs based on the git commit sha.
this code makes it possible to specify a environment variable whit the sha1 value