简体   繁体   中英

Gitlab-CI not recognize the yml on the folders

So i have multiple folders inside a empty IDEA project and each folder has a pom.xml.

I need to deploy each folder separately but gitlab ci only recognize the main folder which is the empty project.

If I understand your achitecture well, you should have a separate git repository for each of your folders in the parent IDEA project.

It would look like that :

/rootProject
  |- gitRepo1
    |- .gitlab-ci.yml
  |- gitRepo2
    |- .gitlab-ci.yml
  |- gitRepo3
    |- .gitlab-ci.yml

This way you can have separate CI pipelines and deployments for each subfolder.

There is an open issue considering the possibility to change the default location of the .gitlab-ci.yml file, but it is not yet available : https://gitlab.com/gitlab-org/gitlab-ce/issues/15041

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM