Ejemplo n.º 1
0
def package_release(directory, name, v2_plugin=False):
    if not name:
        raise ValueError('Argument name can not be "NoneType"')
    try:
        setup_py = os.path.join(directory, 'setup.py')
        plugin_release_with_latest(name,
                                   find_version(setup_py),
                                   v2_plugin=v2_plugin)
    except (RuntimeError, FileNotFoundError):
        plugin_yaml = os.path.join(directory, 'plugin.yaml')
        plugin_release_with_latest(name,
                                   get_plugin_yaml_version(plugin_yaml),
                                   v2_plugin=v2_plugin)
Ejemplo n.º 2
0
from os import path, pardir
from ecosystem_cicd_tools.release import plugin_release_with_latest
from ecosystem_cicd_tools.validations import get_plugin_yaml_version

plugin_yaml = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)), 'plugin.yaml')

if __name__ == '__main__':
    plugin_release_with_latest('cloudify-gcp-plugin',
                               get_plugin_yaml_version(plugin_yaml))
Ejemplo n.º 3
0
from os import path, pardir
from ecosystem_cicd_tools.release import plugin_release_with_latest
from ecosystem_cicd_tools.validations import get_plugin_yaml_version


plugin_yaml = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'plugin.yaml')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-managed-nagios-plugin', get_plugin_yaml_version(plugin_yaml))
Ejemplo n.º 4
0
from os import path, pardir
from ecosystem_cicd_tools.release import plugin_release_with_latest
from ecosystem_cicd_tools.validations import get_plugin_yaml_version


plugin_yaml = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'plugin.yaml')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-nagiosrest-plugin', get_plugin_yaml_version(plugin_yaml))
from os import path, pardir
from ecosystem_cicd_tools.release import plugin_release_with_latest
from ecosystem_cicd_tools.validations import get_plugin_yaml_version


plugin_yaml = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'plugin.yaml')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-aws-plugin', get_plugin_yaml_version(plugin_yaml))