In case someone encounters issues even with http proxy setting added,
GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Besides original solution, add postBuffer properties below to a template solve my problem. gnutls-bin is required to install
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
# optional
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