Create managed config files yaml from config dir 89/65789/5
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 16 Oct 2020 21:53:04 +0000 (14:53 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 28 Oct 2020 21:12:37 +0000 (14:12 -0700)
commit6c4f79c80ea44fd2bceba5b74c5ebc33e2f9da42
tree801f6f7aa61f53c61a75c0f4f59bcb81c5fc7948
parentd7b52464758e6351d79a00c003abfc978d0717ba
Create managed config files yaml from config dir

This script requires ruamel.yaml to be installed in the environment that
it is run in

Will take a configuration tree and build up the JCasC managed files
section and output to stdout the resultant yaml

Expected configuration of the tree is as follows:

top
|- config_type
    |- file-id
        |- config-params.yaml
        |- content
        |- ??CredentialMappings.yaml
        |- ??CredentialMappings.sandbox.yaml
...

The ??CredentialMappins.yaml will be used for production systems and the
sandbox version for sandbox systems (pass a -s or --sandbox)

Change-Id: I196e99f1db40223a29e892eb86efd70ecaa328f0
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jenkins-admin/create_jenkins_managed_files_yaml.py [new file with mode: 0755]
releasenotes/notes/create_jenkins_managed_files-3b763a3a29b862ab.yaml [new file with mode: 0644]