I have my own GitLab Runner running connected. It is an LXD container with gitlab-runner installed and successfully registered. In my Gitlab.com I see the runner connected, status is green.
My .gitlab-ci.yml
file is is as simple as possible. It only has
build_job:
stage: build
script:
- echo "This is a simple GitLab CI job"
artifacts:
paths:
- build_output.txt
only:
- master
When I commit and push, or retry a job. The job runs very quickly and ends with “passed” status. There is no output and there is also no artifact attached to the successful job.
When I use a command that doesn’t exist, for example the none existing command hiho
the job fails.
build_job:
stage: build
script:
- hiho "This is a simple GitLab CI job"
artifacts:
paths:
- build_output.txt
only:
- master
There is no information why the job failed. No logging. No trace.
So the symptoms are. Jobs are passed with valid syntax. There is however no logging. Jobs with syntax errors fail also with no logging.
Why is this not working