I've been using CI/CD with Azure Pipelines and before the build and publish there's a simple Bash Task to update the Version number of our site and push that to git. This has been running OK until last week.
Now every time there is a git pull
or git push
command, the Pipeline fails and the logs return:
fatal: unable to access 'https://bitbucket.org/site/repo': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
A few things to mention:
Here's the bash:
#!/bin/bash
git config --global http.postBuffer 524288000
git config http.timeout 600
git config --global --unset-all remote.origin.proxy
git config --global --unset https.proxy
git config --global --unset http.proxy
git config --global http.sslVerify false
git config --list
set -e
git checkout {branch name}
git pull
git status
{code to edit a string in our .csproj file...}
git add .
git commit
git tag -f dev_$todaysdate HEAD
git status
git push origin {branch name} dev_$todaysdate
git configs:
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/{path}
core.autocrlf=true
core.fscache=true
core.symlinks=true
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
safe.directory=*
http.sslverify=false
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.origin.url=https://bitbucket.org/{site}/{repo}
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
gc.auto=0
http.version=HTTP/1.1
http.https://bitbucket.org/{site}/{repo}.extraheader=AUTHORIZATION: basic ***
Any help, please?
I couldn't make this work with Bash script but I was able to resolve it by switching to PowerShell and executing exactly the same git commands.