当前位置: 首页>>代码示例>>Python>>正文


Python JJBConfig.builder['plugins_info']方法代码示例

本文整理汇总了Python中jenkins_jobs.config.JJBConfig.builder['plugins_info']方法的典型用法代码示例。如果您正苦于以下问题:Python JJBConfig.builder['plugins_info']方法的具体用法?Python JJBConfig.builder['plugins_info']怎么用?Python JJBConfig.builder['plugins_info']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jenkins_jobs.config.JJBConfig的用法示例。


在下文中一共展示了JJBConfig.builder['plugins_info']方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_multiple_same_anchor_in_multiple_toplevel_yaml

# 需要导入模块: from jenkins_jobs.config import JJBConfig [as 别名]
# 或者: from jenkins_jobs.config.JJBConfig import builder['plugins_info'] [as 别名]
    def test_multiple_same_anchor_in_multiple_toplevel_yaml(self):
        """
        Verify that anchors/aliases only span use of '!include' tag

        To ensure that any yaml loaded by the include tag is in the same
        space as the top level file, but individual top level yaml definitions
        are treated by the yaml loader as independent.
        """

        files = ["custom_same_anchor-001-part1.yaml",
                 "custom_same_anchor-001-part2.yaml"]

        jjb_config = JJBConfig()
        jjb_config.jenkins['url'] = 'http://example.com'
        jjb_config.jenkins['user'] = 'jenkins'
        jjb_config.jenkins['password'] = 'password'
        jjb_config.builder['plugins_info'] = []
        jjb_config.validate()
        j = YamlParser(jjb_config)
        j.load_files([os.path.join(self.fixtures_path, f) for f in files])
开发者ID:Ladicle,项目名称:jenkins-job-builder,代码行数:22,代码来源:test_localyaml.py

示例2: setUp

# 需要导入模块: from jenkins_jobs.config import JJBConfig [as 别名]
# 或者: from jenkins_jobs.config.JJBConfig import builder['plugins_info'] [as 别名]
 def setUp(self):
     super(TestCaseTestBuilder, self).setUp()
     jjb_config = JJBConfig()
     jjb_config.builder['plugins_info'] = ['plugin1', 'plugin2']
     jjb_config.validate()
     self.builder = jenkins_jobs.builder.JenkinsManager(jjb_config)
开发者ID:asdwsda,项目名称:jenkins-job-builder,代码行数:8,代码来源:test_builder.py


注:本文中的jenkins_jobs.config.JJBConfig.builder['plugins_info']方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。