If you are getting following error in your when running gitlab ci/cd job via gitlab-runner
:
ERROR: Job failed: prepare environment: Process exited with status 1.
Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading
for more information
Solution
Run following command:
find / -name .bash_logout
and delete following files if exist
sudo rm -r /home/gitlab-runner/.bash_logout
sudo rm -r /home/<username>/.bash_logout
Try to re-run the jobs it should be working.
Read More at: Common Gitlab Runner errors and solutions
Top comments (4)
It works for me!
Could you tell me why this would work?
Thanks a bunch!
You saved me. Thanks so much.
@neo1989 you're most welcome :), feel free to bookmark dev.to/themodernpk/gitlab-runner-e...