I have problem in Gitlab CI/CD build stage. For some reason the job is failing. My Gitlab-Runner yaml file structure is below:
stages:
- build
- deploy
job 1:
stage: build
script:
- 'bash lint.sh'
- "echo test"
allow_failure: true
job 2:
stage: deploy
script: "bash deploy.sh"
The problem is that after the lint.sh is executed, It returns the positive pylint score but the job is not succeeded in the job status and fails with the exit status:1 as shown in the image below:
After checking the logs
of gitlab-runner
, I found the following error:
pam_systemd(su:session): Failed to create session: Start job for unit [email protected] failed with 'failed'
Log-Image: