Pipeline status shows a skipped status when only a manual action is available.

Summary

Pipeline status shows a skipped status when only a manual action is available.

Steps to reproduce

Use the following .gitlab-ci.yml template

image: alpine:latest

stages:
  - release

release_job:
  stage: release
  script:
    - echo 'Release Complete.'
  when: manual

Example Project

https://gitlab.com/dimitrieh/test-skipped-commit-status-with-manual-action/commits/master

What is the current bug behavior?

Shows the pipeline status as skipped even though the only job included is a manual action.

What is the expected correct behavior?

The pipeline status should reflect the manual action status.

Relevant logs and/or screenshots

image

image

Output of checks

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)

Assignee Loading
Time tracking Loading