36 lines
940 B
Python
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)
|