Skip to content
Snippets Groups Projects
Commit e79ee5eb authored by Frank Baier's avatar Frank Baier
Browse files

Make a difference between old and new checks becaus lib and checkman exists in booth

parent 97114b9c
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,16 @@ print(os.getcwd())
os.makedirs(f"cmk_addons_plugins/{os.environ.get('PROJECT_NAME')}")
items = ['__init__.py', 'agent_based', 'graphing', 'libexec', 'rulesets', 'server_side_calls', 'special_agents']
for item in items:
if os.path.exists(item):
shutil.move(item, f"cmk_addons_plugins/{os.environ.get('PROJECT_NAME')}")
if os.path.exists('agent_based'):
items = ['__init__.py', 'agent_based', 'graphing', 'libexec', 'rulesets', 'server_side_calls', 'special_agents', 'lib', 'checkman']
for item in items:
if os.path.exists(item):
shutil.move(item, f"cmk_addons_plugins/{os.environ.get('PROJECT_NAME')}")
else:
items = ['__init__.py', 'agent_based', 'graphing', 'libexec', 'rulesets', 'server_side_calls', 'special_agents']
for item in items:
if os.path.exists(item):
shutil.move(item, f"cmk_addons_plugins/{os.environ.get('PROJECT_NAME')}")
version = os.environ.get("CI_COMMIT_TAG")
name = os.environ.get("PROJECT_NAME")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment