Possible errors on pipeline failure:

Error:

[stderr]git@bitbucket.org: Permission denied (publickey).
[stderr]fatal: Could not read from remote repository.
[stderr]
[stderr]Please make sure you have the correct access rights
[stderr]and the repository exists.

Fix:

Please make sure you are placing the ssh public key in the below directory

C:\Windows\System32\config\systemprofile\.ssh

Error:

 [stderr]error: cannot open .git/FETCH_HEAD: Permission denied

Fix:

 rm -f .git/FETCH_HEAD