Skip to content

Jobs skipped randomly and no way to know why

Summary

We have a pipeline that triggers another pipeline in a different project at the end of the pipeline. For some reason (randomly), the job will be marked as skipped and doesn't run. How can we debug why the job was skipped?

Steps to reproduce

Create a pipeline and trigger another pipeline at the end of it, ours looks like this:

trigger_another_build:
  stage: publishing
  trigger: some_group/some_project
  only:
    refs:
      - master

What is the current bug behavior?

Job is skipped

What is the expected correct behavior?

Job runs

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)