We need to make sure that commit SHA that triggered the build via webhook is the same SHA that the repo is being checkout out.
Use case:
Dev-1 merges changes to repo 'a'. Within seconds, Dev-2 merges changes to repo 'a'.
Expectation:
Each commit triggers a separate build based on the webhook SHA that triggered the build.
Current result:
SHA of Jenkinsfile might be not the same as checkout code, since the merges might happen within seconds of each other.