Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 840290f6 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

Renamed "run_vadere_console_with_all_scneario_files.py" to...

Renamed "run_vadere_console_with_all_scneario_files.py" to "run_vadere_console_with_all_scenario_files.py" and call it in ".gitlab-ci.yml".
parent 3683756d
Pipeline #62387 failed with stages
in 1 minute and 53 seconds
......@@ -37,5 +37,5 @@ run_scenario_files:
script:
- mvn clean
- mvn package -Dmaven.test.skip=true
- python3 Tools/run_vadere_console_with_all_scneario_files.py
- python3 Tools/run_vadere_console_with_all_scenario_files.py
......@@ -30,12 +30,12 @@ def run_scenario_files_with_vadere_console(scenario_files, vadere_console="Vader
output_dir = "output"
if not os.path.exists(output_dir):
print("Creating output directory: {}".format(output_dir))
os.makedirs(output_dir)
print("Created output directory: {}".format(output_dir))
for scenario_file in scenario_files:
print("Running scenario file: {}".format(scenario_file))
total_scenario_files = len(scenario_files)
for i, scenario_file in enumerate(scenario_files):
print("Running scenario file ({}/{}): {}".format(i + 1, total_scenario_files, scenario_file))
# Use timout feature, check return value and capture stdout/stderr to a PIPE (use completed_process.stdout to get it).
completed_process = subprocess.run(args=["java", "-jar", vadere_console, scenario_file, output_dir],
timeout=scenario_timeout_in_sec,
......@@ -45,9 +45,7 @@ def run_scenario_files_with_vadere_console(scenario_files, vadere_console="Vader
print("Finished scenario file: {}".format(scenario_file))
if os.path.exists(output_dir):
print("Deleting output directory: {}".format(output_dir))
shutil.rmtree(output_dir)
print("Deleted output directory: {}".format(output_dir))
if __name__ == "__main__":
scenario_files = find_scenario_files()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment