DCD-1205: Make generate pipeline steps more descriptive.

This commit is contained in:
Steve
2021-01-20 12:06:17 +11:00
parent c187f992f0
commit 5b7d4382af
2 changed files with 42 additions and 41 deletions

View File

@@ -32,7 +32,7 @@ pipelines:
fi fi
- parallel: - parallel:
- step: - step:
name: Molecule Test Batch - 1 name: Molecule Test Batch - aws_common/cw-disabled
services: services:
- docker - docker
script: script:
@@ -40,7 +40,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 1 - ./bin/run-tests-in-batches --batch 1
- step: - step:
name: Molecule Test Batch - 2 name: Molecule Test Batch - aws_common/default
services: services:
- docker - docker
script: script:
@@ -48,7 +48,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 2 - ./bin/run-tests-in-batches --batch 2
- step: - step:
name: Molecule Test Batch - 3 name: Molecule Test Batch - aws_common/logs-disabled
services: services:
- docker - docker
script: script:
@@ -56,7 +56,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 3 - ./bin/run-tests-in-batches --batch 3
- step: - step:
name: Molecule Test Batch - 4 name: Molecule Test Batch - bitbucket_config/default
services: services:
- docker - docker
script: script:
@@ -64,7 +64,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 4 - ./bin/run-tests-in-batches --batch 4
- step: - step:
name: Molecule Test Batch - 5 name: Molecule Test Batch - confluence_config/aurora
services: services:
- docker - docker
script: script:
@@ -72,7 +72,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 5 - ./bin/run-tests-in-batches --batch 5
- step: - step:
name: Molecule Test Batch - 6 name: Molecule Test Batch - confluence_config/default
services: services:
- docker - docker
script: script:
@@ -80,7 +80,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 6 - ./bin/run-tests-in-batches --batch 6
- step: - step:
name: Molecule Test Batch - 7 name: Molecule Test Batch - confluence_config/password_char_escaping
services: services:
- docker - docker
script: script:
@@ -88,7 +88,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 7 - ./bin/run-tests-in-batches --batch 7
- step: - step:
name: Molecule Test Batch - 8 name: Molecule Test Batch - confluence_config/system_jdk
services: services:
- docker - docker
script: script:
@@ -96,7 +96,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 8 - ./bin/run-tests-in-batches --batch 8
- step: - step:
name: Molecule Test Batch - 9 name: Molecule Test Batch - create_backups/default
services: services:
- docker - docker
script: script:
@@ -104,7 +104,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 9 - ./bin/run-tests-in-batches --batch 9
- step: - step:
name: Molecule Test Batch - 10 name: Molecule Test Batch - diy_backup/default
services: services:
- docker - docker
script: script:
@@ -112,7 +112,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 10 - ./bin/run-tests-in-batches --batch 10
- step: - step:
name: Molecule Test Batch - 11 name: Molecule Test Batch - jira_config/aurora
services: services:
- docker - docker
script: script:
@@ -120,7 +120,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 11 - ./bin/run-tests-in-batches --batch 11
- step: - step:
name: Molecule Test Batch - 12 name: Molecule Test Batch - jira_config/default
services: services:
- docker - docker
script: script:
@@ -128,7 +128,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 12 - ./bin/run-tests-in-batches --batch 12
- step: - step:
name: Molecule Test Batch - 13 name: Molecule Test Batch - jira_config/jira_config_props
services: services:
- docker - docker
script: script:
@@ -136,7 +136,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 13 - ./bin/run-tests-in-batches --batch 13
- step: - step:
name: Molecule Test Batch - 14 name: Molecule Test Batch - jira_config/password_char_escaping
services: services:
- docker - docker
script: script:
@@ -144,7 +144,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 14 - ./bin/run-tests-in-batches --batch 14
- step: - step:
name: Molecule Test Batch - 15 name: Molecule Test Batch - linux_common/default
services: services:
- docker - docker
script: script:
@@ -152,7 +152,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 15 - ./bin/run-tests-in-batches --batch 15
- step: - step:
name: Molecule Test Batch - 16 name: Molecule Test Batch - product_common/default
services: services:
- docker - docker
script: script:
@@ -160,7 +160,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 16 - ./bin/run-tests-in-batches --batch 16
- step: - step:
name: Molecule Test Batch - 17 name: Molecule Test Batch - product_common/system_jdk
services: services:
- docker - docker
script: script:
@@ -168,7 +168,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 17 - ./bin/run-tests-in-batches --batch 17
- step: - step:
name: Molecule Test Batch - 18 name: Molecule Test Batch - product_install/bitbucket_latest
services: services:
- docker - docker
script: script:
@@ -176,7 +176,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 18 - ./bin/run-tests-in-batches --batch 18
- step: - step:
name: Molecule Test Batch - 19 name: Molecule Test Batch - product_install/confluence_latest
services: services:
- docker - docker
script: script:
@@ -184,7 +184,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 19 - ./bin/run-tests-in-batches --batch 19
- step: - step:
name: Molecule Test Batch - 20 name: Molecule Test Batch - product_install/crowd_latest
services: services:
- docker - docker
script: script:
@@ -192,7 +192,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 20 - ./bin/run-tests-in-batches --batch 20
- step: - step:
name: Molecule Test Batch - 21 name: Molecule Test Batch - product_install/default
services: services:
- docker - docker
script: script:
@@ -200,7 +200,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 21 - ./bin/run-tests-in-batches --batch 21
- step: - step:
name: Molecule Test Batch - 22 name: Molecule Test Batch - product_install/jira_all
services: services:
- docker - docker
script: script:
@@ -208,7 +208,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 22 - ./bin/run-tests-in-batches --batch 22
- step: - step:
name: Molecule Test Batch - 23 name: Molecule Test Batch - product_install/jira_cached_with_downgrade
services: services:
- docker - docker
script: script:
@@ -216,7 +216,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 23 - ./bin/run-tests-in-batches --batch 23
- step: - step:
name: Molecule Test Batch - 24 name: Molecule Test Batch - product_install/jira_cached_with_upgrade
services: services:
- docker - docker
script: script:
@@ -224,7 +224,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 24 - ./bin/run-tests-in-batches --batch 24
- step: - step:
name: Molecule Test Batch - 25 name: Molecule Test Batch - product_install/jira_software_latest
services: services:
- docker - docker
script: script:
@@ -232,7 +232,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 25 - ./bin/run-tests-in-batches --batch 25
- step: - step:
name: Molecule Test Batch - 26 name: Molecule Test Batch - product_install/jira_tarball
services: services:
- docker - docker
script: script:
@@ -240,7 +240,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 26 - ./bin/run-tests-in-batches --batch 26
- step: - step:
name: Molecule Test Batch - 27 name: Molecule Test Batch - product_install/jira_version_from_file
services: services:
- docker - docker
script: script:
@@ -248,7 +248,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 27 - ./bin/run-tests-in-batches --batch 27
- step: - step:
name: Molecule Test Batch - 28 name: Molecule Test Batch - product_install/jira_version_latest
services: services:
- docker - docker
script: script:
@@ -256,7 +256,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 28 - ./bin/run-tests-in-batches --batch 28
- step: - step:
name: Molecule Test Batch - 29 name: Molecule Test Batch - product_install/jira_version_override
services: services:
- docker - docker
script: script:
@@ -264,7 +264,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 29 - ./bin/run-tests-in-batches --batch 29
- step: - step:
name: Molecule Test Batch - 30 name: Molecule Test Batch - product_install/servicedesk3
services: services:
- docker - docker
script: script:
@@ -272,7 +272,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 30 - ./bin/run-tests-in-batches --batch 30
- step: - step:
name: Molecule Test Batch - 31 name: Molecule Test Batch - product_install/servicedesk4
services: services:
- docker - docker
script: script:
@@ -280,7 +280,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 31 - ./bin/run-tests-in-batches --batch 31
- step: - step:
name: Molecule Test Batch - 32 name: Molecule Test Batch - product_install/servicedesk_latest
services: services:
- docker - docker
script: script:
@@ -288,7 +288,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 32 - ./bin/run-tests-in-batches --batch 32
- step: - step:
name: Molecule Test Batch - 33 name: Molecule Test Batch - product_startup/bitbucket
services: services:
- docker - docker
script: script:
@@ -296,7 +296,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 33 - ./bin/run-tests-in-batches --batch 33
- step: - step:
name: Molecule Test Batch - 34 name: Molecule Test Batch - product_startup/default
services: services:
- docker - docker
script: script:
@@ -304,7 +304,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 34 - ./bin/run-tests-in-batches --batch 34
- step: - step:
name: Molecule Test Batch - 35 name: Molecule Test Batch - product_startup/synchrony
services: services:
- docker - docker
script: script:
@@ -312,7 +312,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 35 - ./bin/run-tests-in-batches --batch 35
- step: - step:
name: Molecule Test Batch - 36 name: Molecule Test Batch - restore_backups/default
services: services:
- docker - docker
script: script:
@@ -320,7 +320,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 36 - ./bin/run-tests-in-batches --batch 36
- step: - step:
name: Molecule Test Batch - 37 name: Molecule Test Batch - restore_backups/restore_conf_server
services: services:
- docker - docker
script: script:
@@ -328,7 +328,7 @@ pipelines:
- ./bin/run-tests-in-batches --batch 37 - ./bin/run-tests-in-batches --batch 37
- step: - step:
name: Molecule Test Batch - 38 name: Molecule Test Batch - restore_backups/restore_jira_clustered
services: services:
- docker - docker
script: script:

View File

@@ -15,9 +15,9 @@ class Pipeline:
print(generated_output) print(generated_output)
def _build_steps(self): def _build_steps(self):
return [Step(f"Molecule Test Batch - {index}", return [Step(f"Molecule Test Batch - {scenario_name}",
self._build_script_commands(index)) self._build_script_commands(index))
for index, scenario_rel_path in for index, (scenario_rel_path, scenario_name) in
enumerate(self._find_all_scenarios(), 1)] enumerate(self._find_all_scenarios(), 1)]
@staticmethod @staticmethod
@@ -29,7 +29,8 @@ class Pipeline:
scenario_dirs = [] scenario_dirs = []
for root, dirs, files in os.walk(Path(os.path.join(os.path.dirname(__file__), "..", ROLES_DIR))): for root, dirs, files in os.walk(Path(os.path.join(os.path.dirname(__file__), "..", ROLES_DIR))):
[scenario_dirs.append(root) for f in files if f.endswith("molecule.yml")] [scenario_dirs.append(root) for f in files if f.endswith("molecule.yml")]
return scenario_dirs scenarios = map(lambda d: (d, f"{Path(d).parts[2]}/{Path(d).parts[4]}"), scenario_dirs)
return scenarios
@staticmethod @staticmethod
def _load_template_as_string(): def _load_template_as_string():