How to share a Declarative Pipeline across many projects

前端 未结 3 1678
别跟我提以往
别跟我提以往 2021-02-10 09:57

I have a lot of projects in different repositories which share the same fundamental CI-workflow, which I can easily express as a Declarative Pipeline:

pipeline {         


        
3条回答
  •  遥遥无期
    2021-02-10 10:30

    While the views are left intact using the suggestion from noober01 the declarative pipeline will not function properly. E.g. when clauses will be ignored, since the pipeline element is expected to be top-level, meaning it is parsed as scripted pipeline instead.

    See the following issue rejected by the team behind Jenkins: loading external declarative pipelines issue

提交回复
热议问题