Import a gitlab project and setup CI don't build automatically
Summary
We are currently trying to setup Gitlab CI at work. We already have a long term working gitlab (actually in v8.9.6), and in order to try and setup Gitlab CI, we have setup an other gitlab server for the testing purpose of the solution. When i'm importing a project in this new Gitlab, and want to setup Gitlab CI on it, it is not launching the pipelines automatically. I need to launch it with the New Pipeline
button, and choose the branch from where I want to launch the Pipeline.
If I create directly a project, with no import, and then setup the Gitlab CI, there is no problem for the automatic build on push.
I add that the runner is correctly setup, and there is no problem with a project created from scratch.
Steps to reproduce
-
Export a project from a Gitlab CE instance
-
Create a new project on another Gitlab CE instance, and select the
Import project from : Gitlab export
(i've not tried on the same instance for the moment) -
Setup CI (I've tested with a simple push to master branch, with .gitlab-ci.yml, and with the "Setup CI" button, on the web interface)
-
There is no automatic build launch, but it's working when we launch manually a pipeline on Master (the .gitlab-ci file seems correct and is normally working on manual launch)
Expected behavior
When I push a .gitlab-ci.yml to a Gitlab export
imported project, it will automatically launch a new pipeline.
Actual behaviour
When I push a .gitlab-ci.yml to a Gitlab export
imported project, the pipeline don't launch automatically.