jenkinsci / templating-engine-plugin

create tool-agnostic, templated pipelines to be shared by multiple teams
https://jenkinsci.github.io/templating-engine-plugin/latest/
Apache License 2.0
171 stars 58 forks source link

[feature]: create a `strict` mode for pipeline configuration parsing #299

Open steven-terrana opened 2 years ago

steven-terrana commented 2 years ago

Feature Description

currently, when a Pipeline Configuration overrides a field it is not allowed to, this is ignored.

propose adding a

jte{
  strict_configuration_overriding = false // default is true 
}

when strict_configuration_overriding is true, the pipeline will fail in the case of:

block{
  field = "something"
}
block{
  field = "something else" // not permitted
}
cokieffebah commented 2 years ago

after reading #300, I see the value. maybe just strict_configuration because it has to apply to @merge also