Merge "Create jenkins pipeline for k6 performance tests"
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
index 00b8b281a0b779d0cb9040ffa4c88ea35b9def2f..78e89745639b3013e4d0e2d1ce922dbad82b29b2 100644 (file)
       - shell:
           !include-raw-escape: ./verify-policy-csit.sh
 
+# A job to plot the result of cps performance test
 - job-template:
     name: 'onap-{project-name}-performance-tests-plots'
     disabled_job_var: false
       - html-publisher:
           name: "Performance Review"
           dir: "."
-          files: "index.html,createOperation.html,readOperation.html,updateOperation.html,deleteOperation.html"
+          files: "cpsStableTestsPerformanceReview.html,ncmpStableTestsPerformanceReview.html,cpsUnstableTestsPerformanceReview.html,ncmpUnstableTestsPerformanceReview.html"
 
+# A job to trigger performance test which are based on K6 Framework on cps project
+- job-template:
+    name: 'onap-{project-name}-performance-test-k6'
+    disabled_job_var: false
+    node: xerces-cps-hw
+    wipe_workspace: false
+
+    triggers:
+      - timed: '{timer}'
+
+    builders:
+      - shell:
+          !include-raw-escape: ./cps/k6-performance-tests-trigger.sh
+
+# A job to perform performance test which are based on Spock-Groovy Framework on cps project
 - job-template:
     name: 'onap-{project-name}-{stream}-performance-test-java'
     disabled_job_var: false