我正在使用Gitlab自我服务器社区版本ci/cd功能,它运行良好,但是突然有一天,gitlab/cicd中的所有项目都失败了,它提到以下错误:
Uploading artifacts for successful job
Uploading artifacts...
promotion-api/my-boot-module-system/target/*.jar: found 1 matching files and directories
WARNING: Uploading artifacts as "archive" to coordinator... failed id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
FATAL: invalid argument
ERROR: Job failed: exit code 1
下面是..gitlab ci.yml中的代码
deploy-java:
stage: deploy
dependencies:
- build-java
image:
name: docker/compose:latest
before_script:
- docker info
- docker-compose -v
script:
- cd promotion-api
- docker-compose build
- docker images
- docker ps -a
- docker-compose up -d
tags:
- promotion
2021-3-29:
我把运行程序从linux版本换成了docker,现在看来一切都很好。
发布于 2021-05-10 14:02:34
您在GitLab本身中遇到了一个bug。它应该明确地说明问题所在,而不是一个相当模糊的HTTP状态500。在您的存储库或CI设置中,这可能不是一个问题。
请关注这些问题以了解更多信息:
在传输过程中停止了https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26869
。
https://stackoverflow.com/questions/66740594
复制相似问题