Calculate a stable identifier based on required parameters that make
up the identity of the repository so that jenkins will only require
rescanning the repository if the repository was changed.
Change-Id: I83da1d2478f2771e9c7808e7dbd9e6bcba5025f7
Task: 22887
Story: 2002910
It appears there was a stray if statement resulting in an
UnboundLocalError and stacktrace.
Change-Id: I7e1533ca382a582066dd6132d2967281b0b50b98
Task: 19766
Story: 2002092