"Set up CI/CD" button shows even when CI is configured

Summary

The "Set up CI/CD" button shows up incorrectly even when CI is already configured, when not having a .gitlab-ci.yml file, but a different file at another location configured in the project settings.

Steps to reproduce

  1. Create repository
  2. Create a subfolder with a gitlab-ci.yml file
  3. Set the path to that gitlab-ci.yml file in the Projects CI settings
  4. CI is now configured

Example Project

https://gitlab.com/ePirat/cibuttonbugtestproject

What is the current bug behavior?

The "Set up CI/CD" button still shows up.

What is the expected correct behavior?

The button should reflect reality and instead link to the CI/CD file just like it happens when I have a .gitlab-ci.yml

Relevant logs and/or screenshots

Bildschirmfoto_2019-11-01_um_14.03.00

Output of checks

This bug happens on GitLab.com

Happens for a self-hosted CE edition too but I have no access to relevant logs there and I doubt anything helpful would be in there for this bug.

If it is still required, let me know.

Related issues

Possibly related ticket is #30603 (closed)