當前位置: 首頁>>代碼示例>>Python>>正文


Python JJBConfig.jenkins['password']方法代碼示例

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


在下文中一共展示了JJBConfig.jenkins['password']方法的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['password'] [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


注:本文中的jenkins_jobs.config.JJBConfig.jenkins['password']方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。