Disclaimer: I know that this might never get implemented, but I still would like to state that this would be an improvement...
You may also use this in a standalone project configured with Pipeline script from SCM, though in that case the checkout will just be of the latest revision in the branch, possibly newer than the revision from which the Pipeline script was loaded.
This has the nasty side effect that your sources might not come from the same commit as your build definition.
So the request is to give the same guarantee of always checking out the same commit when doing checkout scm also in standalone projects.
Workaround (if you have access to currentBuild.rawBuild and you know that you are using git: