我一直在 Azure Pipelines 中使用 CI/CD,在构建和发布之前,有一个简单的 Bash 任务来更新我们网站的版本号并将其推送到 git。直到上周为止一直运行良好。
现在每次有
git pull
或 git push
命令时,管道都会失败并且日志返回:
fatal: unable to access 'https://bitbucket.org/site/repo': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
有几点需要提及:
这是狂欢:
#!/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 配置:
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 ***
请问有什么帮助吗?
我无法使用 Bash 脚本完成这项工作,但我能够通过切换到 PowerShell 并执行完全相同的 git 命令来解决它。