Au cas où quelqu’un rencontrerait des problèmes même avec le paramètre de proxy http ajouté,
GnuTLS recv error (-110): La connexion TLS a été terminée de manière inappropriée.
En plus de la solution originale, ajoutez les propriétés postBuffer ci-dessous à un modèle pour résoudre mon problème. gnutls-bin est requis pour l’installation
hooks:
before_code:
- exec:
cmd:
- apt-get update -y
- apt-get install -y gnutls-bin
- git config --global http.proxy socks5://172.17.0.1:1080
- git config --global https.proxy socks5://172.17.0.1:1080
- git config --global https.sslVerify false
- git config --global http.postBuffer 1048576000
# optionnel
after_code:
- exec:
cmd:
- git config --global --unset http.proxy
- git config --global --unset https.proxy
- git config --global --unset https.sslVerify
- git config --global --unset http.postBuffer