Esempio 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)
Esempio 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))
Esempio 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-starlingx-plugin',
                               get_plugin_yaml_version(plugin_yaml))
Esempio 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-managed-nagios-plugin', get_plugin_yaml_version(plugin_yaml))
Esempio n. 5
0
from os import path, pardir
from ecosystem_cicd_tools.release import (
    plugin_release_with_latest, find_version)

setup_py = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'setup.py')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-openstack-plugin', find_version(setup_py))
Esempio n. 6
0
from os import path, pardir
from ecosystem_cicd_tools.release import (
    plugin_release_with_latest, find_version)

setup_py = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'setup.py')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-utilities-plugin', find_version(setup_py))
Esempio n. 7
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-terraform-plugin',
                               get_plugin_yaml_version(plugin_yaml))
Esempio n. 8
0
from os import path, pardir
from ecosystem_cicd_tools.release import (plugin_release_with_latest,
                                          find_version)

setup_py = path.join(path.abspath(path.join(path.dirname(__file__), pardir)),
                     'setup.py')

if __name__ == '__main__':
    plugin_release_with_latest('cloudify-managed-nagios-plugin',
                               find_version(setup_py))
from os import path, pardir
from ecosystem_cicd_tools.release import (
    plugin_release_with_latest, find_version)

setup_py = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)),
    'setup.py')


if __name__ == '__main__':
    plugin_release_with_latest(
        'cloudify-docker-plugin', find_version(setup_py))
Esempio n. 10
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-utilities-plugin',
                               get_plugin_yaml_version(plugin_yaml))
from os import path, pardir
from ecosystem_cicd_tools.release import (plugin_release_with_latest,
                                          find_version)

setup_py = path.join(path.abspath(path.join(path.dirname(__file__), pardir)),
                     'setup.py')

if __name__ == '__main__':
    plugin_release_with_latest('cloudify-kubernetes-plugin',
                               find_version(setup_py))