Search code examples
jenkinsjenkins-pluginskubernetes-helmjenkins-job-dsl

Jenkins Helm format for master.JCasC.configScripts


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 ?


Solution

  • 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>