【问题标题】:How to configure config-file-provider files using configuration-as-code plugin in Jenkins如何在 Jenkins 中使用 configuration-as-code 插件配置 config-file-provider 文件
【发布时间】:2020-01-06 03:00:27
【问题描述】:

我一直关注this 使用配置即代码插件配置配置文件提供程序文件。 下面提供的是我使用的示例 YAML 代码。

unclassified:
 globalConfigFiles:
  configs:
  - custom:
      id: custom-test
      name: DummyCustom1
      comment: dummy custom 1
      content: dummy content 1

我想知道是否有办法将 content 作为文件(或文件路径)。

任何有关如何解决此问题的帮助将不胜感激。

【问题讨论】:

    标签: jenkins yaml jenkins-plugins


    【解决方案1】:

    这是不可能的。它不是 CasC 特定的,它只是 config-file-provider 插件不提供它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多