Share gitlab-ci.yml between projects

后端 未结 7 1206
面向向阳花
面向向阳花 2020-12-13 21:04

We are thinking to move our ci from jenkins to gitlab. We have several projects that have the same build workflow. Right now we use a shared library where the pipelines are

相关标签:
7条回答
  • 2020-12-13 22:03

    With GitLab 13.5 (October 2020), the include feature is even more useful:

    Validate expanded GitLab CI/CD configuration with the API

    Writing and debugging complex pipelines is not a trivial task. You can use the include keyword to help reduce the length of your pipeline configuration files.

    However, if you wanted to validate your entire pipeline via the API previously, you had to validate each included configuration file separately which was complicated and time consuming.

    Now you have the ability to validate a fully-expanded version of your pipeline configuration through the API, with all the include configuration included.
    Debugging large configurations is now easier and more efficient.

    See Documentation and Issue.

    And:

    See GitLab 13.6 (November 2020)

    Include multiple CI/CD configuration files as a list

    Previously, when adding multiple files to your CI/CD configuration using the include:file syntax, you had to specify the project and ref for each file. In this release, you now have the ability to specify the project, ref, and provide a list of files all at once. This prevents you from having to repeat yourself and makes your pipeline configuration less verbose.

    See Documentation) and Issue.

    0 讨论(0)
提交回复
热议问题