buildbot_multibuild/lib/renderers.py

36 lines
940 B
Python
Raw Normal View History

2021-12-23 09:01:52 +01:00
from buildbot.plugins import util
import re
def _is_build_script_available(props):
return props.getProperty("build_script_available", default=False)
2021-12-23 09:01:52 +01:00
@util.renderer
2021-12-25 07:57:44 +01:00
def is_build_script_available(props):
return _is_build_script_available(props)
2021-12-23 09:01:52 +01:00
@util.renderer
2021-12-25 07:57:44 +01:00
def isnt_build_script_available(props):
return not _is_build_script_available(props)
2021-12-23 09:01:52 +01:00
def _is_test_script_available(props):
return props.getProperty("test_script_available", default=False)
2021-12-23 09:01:52 +01:00
@util.renderer
2021-12-25 07:57:44 +01:00
def is_test_script_available(props):
return _is_test_script_available(props)
2021-12-23 09:01:52 +01:00
@util.renderer
2021-12-25 07:57:44 +01:00
def isnt_test_script_available(props):
return not _is_test_script_available(props)
2022-08-08 05:21:33 +02:00
def _files_to_upload(props):
return ','.join(props.getProperty(files_to_upload).split("\n"), default="")
2022-08-08 05:40:59 +02:00
@util.renderer
2022-08-08 05:21:33 +02:00
def files_to_upload(props):
return files_to_upload(props)
2022-08-08 05:40:59 +02:00
@util.renderer
2022-08-08 05:21:33 +02:00
def no_files_to_upload(props):
return not _files_to_upload(props)