Azure Pipelines 致命:无法访问“https://bitbucket.org/site/repo/”:OpenSSL SSL_read:SSL_ERROR_SYSCALL,拉取或推送命令后错误号 0

问题描述 投票:0回答:1

我一直在 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

有几点需要提及:

  • 我正在使用 OAuth 进行连接,并且我允许 OAuth 在整个任务中保持不变:
  • 我们正在使用 Bitbucket Cloud。
  • 本地运行时 git 命令按预期工作(在两台不同的机器上测试)

这是狂欢:

#!/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 ***

请问有什么帮助吗?

azure-devops azure-pipelines bitbucket
1个回答
0
投票

我无法使用 Bash 脚本完成这项工作,但我能够通过切换到 PowerShell 并执行完全相同的 git 命令来解决它。

© www.soinside.com 2019 - 2024. All rights reserved.