Jenkins Helm格式的master.JCasC.configScripts

问题描述 投票:0回答:1

我的values.yaml运行正常。

我想添加Jcasc Config Yml以自动添加管道,但是找不到values.yml文件的格式。

当前我有以下内容,并希望引用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'.

configScripts:部分应放置什么?仅configScripts: ./jenkins.yaml吗?

jenkins jenkins-plugins kubernetes-helm jenkins-job-dsl
1个回答
0
投票

能够像下面这样添加为工作,

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>
© www.soinside.com 2019 - 2024. All rights reserved.