本文整理匯總了Python中jenkins_jobs.config.JJBConfig.jenkins['url']方法的典型用法代碼示例。如果您正苦於以下問題:Python JJBConfig.jenkins['url']方法的具體用法?Python JJBConfig.jenkins['url']怎麽用?Python JJBConfig.jenkins['url']使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jenkins_jobs.config.JJBConfig
的用法示例。
在下文中一共展示了JJBConfig.jenkins['url']方法的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['url'] [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])