Jenkins Helm format for master.JCasC.configScripts

2/19/2020

I have values.yaml that is working perfectly.

I would like to add Jcasc Config Yml to automatically add pipelines but cannot find the format for the values.yml file.

Currently I have below and would like to reference Jenkins.yaml

JCasC:
enabled: true
pluginVersion: 1.35
configScripts:
  welcome-message: |
    jenkins:
      systemMessage: Welcome to our CI\CD server.  This Jenkins is configured and managed 'as code'.

What should I put for the configScripts: section ? just configScripts: ./jenkins.yaml ?

-- DeclanG
jenkins
jenkins-job-dsl
jenkins-plugins
kubernetes-helm

1 Answer

3/18/2020

was able to add as job like below,

jobs:
Test-Job: |-
  <?xml version='1.0' encoding='UTF-8'?>
  <project>
    <keepDependencies>false</keepDependencies>
    <properties/>
    <scm class="hudson.scm.NullSCM"/>
    <canRoam>false</canRoam>
    <disabled>false</disabled>
    <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
    <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
    <triggers/>
    <concurrentBuild>false</concurrentBuild>
    <builders/>
    <publishers/>
    <buildWrappers/>
  </project>
-- DeclanG
Source: StackOverflow