From bf081b8e784755ad3eec877c306e9d718abcb83f Mon Sep 17 00:00:00 2001 From: treddy08 <94612779+treddy08@users.noreply.github.com> Date: Mon, 26 Sep 2022 12:28:03 +1000 Subject: [PATCH] Fix pipeline (#5470) * include template * include template --- .../ocp4_workload_coolstore_apac_summit/tasks/workload.yml | 1 + .../templates/cicd/unit-test-task.yaml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/tasks/workload.yml b/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/tasks/workload.yml index b591ca5bd1c..779f59e9c4c 100644 --- a/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/tasks/workload.yml +++ b/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/tasks/workload.yml @@ -72,6 +72,7 @@ - cicd/generate-tag-task.yaml.j2 - cicd/image-check-task.yaml.j2 - cicd/image-scan-task.yaml.j2 + - cicd/unit-test-task.yaml.j2 - cicd/update-kustomize-repo-task.yaml.j2 - cicd/sonarqube-scan-task.yaml.j2 - cicd/web-ui-ci-pipeline.yaml.j2 diff --git a/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/templates/cicd/unit-test-task.yaml.j2 b/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/templates/cicd/unit-test-task.yaml.j2 index d91aa7c1f26..9eff67e35fc 100644 --- a/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/templates/cicd/unit-test-task.yaml.j2 +++ b/ansible/roles_ocp_workloads/ocp4_workload_coolstore_apac_summit/templates/cicd/unit-test-task.yaml.j2 @@ -45,6 +45,7 @@ spec: set -x npm i jest-cli@21.2.1 npm i angular-mocks@1.6.6 + npm install angular cd coolstore-ui npm test volumeMounts: