buildbot_multibuild/lib/renderers.py
2022-08-08 11:40:59 +08:00

36 lines
940 B
Python

from buildbot.plugins import util
import re
def _is_build_script_available(props):
return props.getProperty("build_script_available", default=False)
@util.renderer
def is_build_script_available(props):
return _is_build_script_available(props)
@util.renderer
def isnt_build_script_available(props):
return not _is_build_script_available(props)
def _is_test_script_available(props):
return props.getProperty("test_script_available", default=False)
@util.renderer
def is_test_script_available(props):
return _is_test_script_available(props)
@util.renderer
def isnt_test_script_available(props):
return not _is_test_script_available(props)
def _files_to_upload(props):
return ','.join(props.getProperty(files_to_upload).split("\n"), default="")
@util.renderer
def files_to_upload(props):
return files_to_upload(props)
@util.renderer
def no_files_to_upload(props):
return not _files_to_upload(props)