Job failed_ prepare environment_ exit status 1 Problem solution

  1. run error

Recently, I was studying the professional knowledge related to Gitlab CI/CD, and ran the pipline on a machine that has been configured with Gitlab Runner, but the following problems occurred.

Running with gitlab-runner 15.11.0 (436955cb)
  on yczx-2288H-V6 PqsbWBss, system ID: s_906fc8140927
Preparing the "shell" executor

Using Shell (bash) executor...
Preparing environment

Running on yczx-2288H-V6...
ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
  1. solution

After some searching, a solution was found. Solution from: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26605

cd /home/gitlab-runner/
sudo rm -rf *

image.png

Guess you like

Origin blog.csdn.net/xiaokai1999/article/details/131521627