configuration-as-code: evaluation of multiple YAML files

26 views
Skip to first unread message

Jonas Lindström

unread,
Nov 4, 2019, 3:49:37 AM11/4/19
to Jenkins Users

The configuration-as-code plugin has the option to use a set of config files by specifying a folder path. I would like to better understand the behaviour when using multiple YAML files.

 

The following configuration will result in a conflict:

 

a.yaml

======

jenkins:

  numExecutors: 1

 

b.yaml

======

jenkins:

  numExecutors: 2

 

 

However, the following *seems* to work:

 

x.yaml

======

jenkins:

  authorizationStrategy:

    globalMatrix:

      permissions:

      - Overall/Administer:jack

 

y.yaml

======

jenkins:

  authorizationStrategy:

    globalMatrix:

      permissions:

      - Overall/Administer:jill

 

In the latter case, the net result is that both jack and jill are administrators. Can I rely on this behaviour, or does it work by coincidence? Will the order of the YAML files matter?

 

Jonas Lindström

unread,
Nov 5, 2019, 3:29:45 AM11/5/19
to Jenkins Users
Found instructions about how to ask questions about this plugin at https://jenkins.io/projects/jcasc/. So I will crosspost to the developer list. Please ignore this thread!

/JL

Baptiste Mathus

unread,
Nov 5, 2019, 6:41:36 AM11/5/19
to jenkins...@googlegroups.com
Just a side note: I have just approved your email to the dev list. 

However, I think we need to adjust this doc page. It sounds a bit misleading to me. The dev list should *not* be used for all questions about JCasC.
Using the dev list should be exclusively reserved for *development* related questions.

I.e. if, as you wrote, you read the source code and do not understand what something does, it is /probably/ OK for the dev list.
If you are considering digging into the source code more, and potentially proposing a patch with some guidance, then the dev list is perfect.
If not, then the users list is the way to go.
And if confirmed a bug, then file it as a bug is expected.

Thank you :-)

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9f2e1e19-c700-4fb8-84b0-788d6edf4bec%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages