本文整理汇总了Python中jenkins_jobs.config.JJBConfig.jenkins['user']方法的典型用法代码示例。如果您正苦于以下问题:Python JJBConfig.jenkins['user']方法的具体用法?Python JJBConfig.jenkins['user']怎么用?Python JJBConfig.jenkins['user']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jenkins_jobs.config.JJBConfig
的用法示例。
在下文中一共展示了JJBConfig.jenkins['user']方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_multiple_same_anchor_in_multiple_toplevel_yaml
# 需要导入模块: from jenkins_jobs.config import JJBConfig [as 别名]
# 或者: from jenkins_jobs.config.JJBConfig import jenkins['user'] [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])