Docker Gitlab ci在结束连接时退出lftp命令,但出现错误

Docker Gitlab ci在结束连接时退出lftp命令,但出现错误,docker,continuous-integration,gitlab,gitlab-ci,lftp,Docker,Continuous Integration,Gitlab,Gitlab Ci,Lftp,我正在尝试使用ftp协议和gitlab的continouis集成来部署我的web应用程序。所有的文件都被上传了,站点运行良好,但是当gitlab runner几乎完成时,我一直遇到以下错误 我的gitlab-ci.yml文件 stages: - build - test - deploy build: stage: build tags: - shell script: - echo "Building" test: stage: test tag

我正在尝试使用ftp协议和gitlab的continouis集成来部署我的web应用程序。所有的文件都被上传了,站点运行良好,但是当gitlab runner几乎完成时,我一直遇到以下错误

我的gitlab-ci.yml文件

stages:
  - build
  - test
  - deploy

build:
  stage: build
  tags:
   - shell
  script: 
  - echo "Building"

test:
  stage: test
  tags:
   - shell
  script: echo "Running tests"

frontend-deploy:
  stage: deploy
  tags:
   - debian
  allow_failure: true
  environment:
    name: devallei
    url: https://devallei.azurewebsites.net/
  only:
    - master
  script:
    - echo "Deploy to staging server"
    - apt-get update -qq 
    - apt-get install -y -qq lftp
    - lftp -c "set ftp:ssl-allow yes; set ssl:verify-certificate false; debug; open -u devallei\FTPAccesHoussem,Devallei2019 ftps://waws-prod-dm1-131.ftp.azurewebsites.windows.net/site/wwwroot; mirror -Rev ./frontend/dist /site/wwwroot"

backend-deploy:
  stage: deploy
  tags:
   - shell
  allow_failure: true
  only: 
   - master
  script:
   - echo "Deploy spring boot application"
我希望跑步者通过并通过了这项工作,但它给了我以下的错误

---- Connecting data socket to (23.99.220.117) port 10033
---- Data connection established
---> ALLO 4329977
<--- 200 ALLO command successful.
---> STOR vendor.3b66c6ecdd8766cbd8b1.js.map
<--- 125 Data connection already open; Transfer starting.
---- Closing data socket
<--- 226 Transfer complete.
---> QUIT
gnutls_record_recv: The TLS connection was non-properly terminated. Assuming
EOF.
<--- 221 Goodbye.
---- Closing control socket
ERROR: Job failed: exit code 1
——将数据插座连接到(23.99.220.117)端口10033
----数据连接已建立
--->ALLO 4329977
STOR vendor.3b66c6ecdd8766cbd8b1.js.map

我不知道“
gnutls\u record\u recv:TLS连接未正确终止的原因。假设EOF.
”错误,但它会使lftp命令返回非零退出代码。这让GitLab认为你的工作失败了。最好的办法是修复它。

如果您认为一切正常并防止lftp命令失败,请在lftp命令的末尾添加一个
| | true
但请注意,即使发生真正的错误,您的工作也不会失败。

谢谢,这是临时项目的临时解决方案。