This is happening in my pipeline when using the default Atlassian image, but in the cloud rather than my data centre:
https://support.atlassian.com/bitbucket-data-center/kb/error-gnutls_handshake-failed-a-tls-warning-alert-has-been-received/
<span>git clone --depth 1 '<a href="https://bitbucket.org/snappy-shopper/snappy-v1.git/" target="_blank" rel="noopener noreferrer">https://bitbucket.org/repo-path.git/</a>' /opt/thing<br>fatal: unable to access '<a href="https://bitbucket.org/snappy-shopper/snappy-v1.git/" target="_blank" rel="noopener noreferrer">https://bitbucket.org/repo-path.git/</a>': gnutls_handshake() failed: Handshake failed</span>
If I switch to `alpine:3.23` (to which I add the `git` package), just to give an example, it's all good, so it indicates that the problem exists in the default image.