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


Python ChangeFilter.fromSchedulerConstructorArgs方法代码示例

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


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

示例1: __init__

# 需要导入模块: from buildbot.changes.filter import ChangeFilter [as 别名]
# 或者: from buildbot.changes.filter.ChangeFilter import fromSchedulerConstructorArgs [as 别名]
    def __init__(self, name, builderNames, properties={}, reason='',
                 createAbsoluteSourceStamps=False, onlyIfChanged=False,
                 branch=NoBranch, change_filter=None, fileIsImportant=None,
                 onlyImportant=False, **kwargs):
        base.BaseScheduler.__init__(self, name, builderNames, properties,
                                    **kwargs)

        # tracking for when to start the next build
        self.lastActuated = None

        # A lock to make sure that each actuation occurs without interruption.
        # This lock governs actuateAt, actuateAtTimer, and actuateOk
        self.actuationLock = defer.DeferredLock()
        self.actuateOk = False
        self.actuateAt = None
        self.actuateAtTimer = None

        self.reason = util.ascii2unicode(reason % {'name': name})
        self.branch = branch
        self.change_filter = ChangeFilter.fromSchedulerConstructorArgs(change_filter=change_filter)
        self.createAbsoluteSourceStamps = createAbsoluteSourceStamps
        self.onlyIfChanged = onlyIfChanged
        if fileIsImportant and not callable(fileIsImportant):
            config.error(
                "fileIsImportant must be a callable")
        self.fileIsImportant = fileIsImportant
        # If True, only important changes will be added to the buildset.
        self.onlyImportant = onlyImportant
        self._reactor = reactor  # patched by tests
开发者ID:aminembarki,项目名称:buildbot,代码行数:31,代码来源:timed.py

示例2: getChangeFilter

# 需要导入模块: from buildbot.changes.filter import ChangeFilter [as 别名]
# 或者: from buildbot.changes.filter.ChangeFilter import fromSchedulerConstructorArgs [as 别名]
    def getChangeFilter(self, branch, branches, change_filter, categories):
        if branch is NotABranch and not change_filter:
            config.error(
                "the 'branch' argument to SingleBranchScheduler is " +
                "mandatory unless change_filter is provided")
        elif branches is not NotABranch:
            config.error(
                "the 'branches' argument is not allowed for " +
                "SingleBranchScheduler")

        return ChangeFilter.fromSchedulerConstructorArgs(
            change_filter=change_filter, branch=branch,
            categories=categories)
开发者ID:BeiNanWoo,项目名称:buildbot,代码行数:15,代码来源:basic.py


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