Create plots for cps performance tests

Issue-ID: CPS-1777
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I93a6ea568e67edeb65cb3f20c5f9fbf86d3f7aaf
diff --git a/jjb/onap/global-templates-onap-java.yaml b/jjb/onap/global-templates-onap-java.yaml
index 8902f57..3132f95 100644
--- a/jjb/onap/global-templates-onap-java.yaml
+++ b/jjb/onap/global-templates-onap-java.yaml
@@ -68,7 +68,7 @@
       - shell:
           !include-raw-escape: ./verify-jobs.sh
 
-# A job to perform CSIT on policy components 
+# A job to perform CSIT on policy components
 - job-template:
     name: 'onap-{project-name}-{stream}-policy-csit-verify-java'
     disabled_job_var: false
@@ -115,7 +115,7 @@
       - string:
           name: CSIT_NAME
           default: '{csit-name}'
-          description: The name of the csit-test to run          
+          description: The name of the csit-test to run
       - string:
           name: SUBDIRECTORY
           default: '{subdirectory}'
@@ -144,6 +144,31 @@
           !include-raw-escape: ./verify-jobs.sh
       - shell:
           !include-raw-escape: ./verify-policy-csit.sh
+
+- job-template:
+    name: 'onap-{project-name}-performance-tests-plots'
+    disabled_job_var: false
+    node: onap-ubuntu1804
+
+    builders:
+      - shell:
+          !include-raw-escape: ./cps/prepare-performance-tests-data.sh
+
+    publishers:
+      - plot:
+          - title: "performance"
+            group: "performance"
+            csvFileName: "results.txt"
+            style: line
+            exclude-zero-yaxis: true
+            num-builds: '30'
+            series:
+              - file:
+                url: 'results.txt'
+                inclusion-flag: 'off'
+                display-table: false
+                format: csv
+
 - job-template:
     name: 'onap-{project-name}-{stream}-performance-test-java'
     disabled_job_var: false
@@ -224,6 +249,8 @@
       - shell:
           !include-raw-escape: ./verify-jobs.sh
 
+    post-build:
+      - project: onap-cps-performance-tests-plots
 
 # csits for diferent projects are different so need to have special handling
 - job-template: