[ONOS-8003]: (JJB) Migrate single-use dependency functions in TestON Pipelines

Change-Id: Ifa3650ce118c1091fda52aa86973b92ce1444ddf
diff --git a/jjb/OnosSystemTest/onos-test-pipeline.yaml b/jjb/OnosSystemTest/onos-test-pipeline.yaml
index 31f25dd..80e6238 100644
--- a/jjb/OnosSystemTest/onos-test-pipeline.yaml
+++ b/jjb/OnosSystemTest/onos-test-pipeline.yaml
@@ -151,45 +151,47 @@
 
 - job-template:
     name: '{type}-pipeline-{version}'
-    description: '<!-- Managed by Jenkins Job Builder -->
+    description: |
+                  <!-- Managed by Jenkins Job Builder -->
                   This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
                   Visit <a href="https://jenkins.onosproject.org/view/QA/job/master-trigger/">master-trigger</a> to trigger a build in this pipeline.<br />
-                  <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
+                  Wiki graphs may also be refreshed here. <br /><br />
                   Created by Devin Lim - devin@opennetworking.org<br />
-                  Copyright (c) 2017 Open Networking Foundation (ONF)'
+                  Copyright (c) 2017 Open Networking Foundation (ONF)
 
     <<: *test-pipe-job-boiler-plate
 
     parameters:
 
-      - string:
-         name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
-         default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
-         description: |
-                       <a href="https://jenkins.onosproject.org/view/QA/job/master-trigger/">master-trigger</a> triggers this pipeline automatically.
-      - string:
-         name: 'Category'
-         default: '{type}'
-         description: |
-                       Category of the pipeline. Primarily used when triggered by the upstream master-trigger job.
+      - text:
+          name: 'TestsOverride'
+          default: ''
+          description: "Add a list of tests here to run, which overrides the test list from the .property file."
 
-      - string:
-         name: 'Branch'
-         default: '{version}'
-         description: |
-                       Branch of the pipeline. Primarily used when triggered by the upstream master-trigger job.
+      - bool:
+          name: 'OnlyRefreshGraphs'
+          default: false
+          description: "Check this option to refresh the graphs without running any of the tests."
 
       - string:
          name: 'TestStation'
          default: ''
-         description: |
-                       Test station to run this pipeline. Example: "TestStation-VMs".
+         description: 'Name of the test station to run this pipeline. Example: "TestStation-VMs".'
 
       - string:
          name: 'NodeLabel'
          default: ''
-         description: |
-                       Node label of the test station that runs this pipeline. Example: "VM".
+         description: 'Node label of the test station that runs this pipeline. Example: "VM".'
+
+      - string:
+          name: 'Category'
+          default: '{type}'
+          description: 'Category of the pipeline. Not recommended to modify. Primarily used when triggered by the upstream <a href="https://jenkins.onosproject.org/view/QA/job/master-trigger/">master-trigger</a> job.'
+
+      - string:
+          name: 'Branch'
+          default: '{version}'
+          description: 'Branch of the pipeline. Not recommended to modify. Primarily used when triggered by the upstream <a href="https://jenkins.onosproject.org/view/QA/job/master-trigger/">master-trigger</a> job.'
 
       - lf-infra-parameters:
          project: 'OnosSystemTest'
@@ -208,125 +210,6 @@
              - 'master'
 
 - job-template:
-    name: 'manual-graph-generator-SCPF'
-    description: |
-                  <!-- Managed by Jenkins Job Builder -->
-                  Refresh the wiki graphs here.  Useful when there is a change in the graph scripts.<br />
-                  <br />
-                  You may also generate a graph trend that displays any number of builds here.<br />
-                  However, keep in mind that only the 50 build graphs will be displayed on the wiki, unless they are manually changed on the wiki.<br >
-                  <br >
-                  Graphs are stored in the <a href="https://jenkins.onosproject.org/view/QA/job/postjob-BM/">postjob-BM<a> workspace.
-
-    <<: *var-init-boiler-plate
-    <<: *test-pipe-job-boiler-plate
-
-    parameters:
-
-      - choice:
-         name: ONOSbranch
-         choices:
-           - 'master'
-           - 'onos-2.1'
-           - 'onos-2.0'
-           - 'onos-1.15'
-           - 'onos-1.14'
-           - 'onos-1.13'
-           - 'onos-1.12'
-         description: "Possible branches (may vary depending on test)"
-
-      - bool:
-         name: isOldFlow
-         default: false
-         description: 'Check if it is using the old flow rules'
-
-      - text:
-         name: Test
-         default: '{SCPF}'
-         description: 'List of the tests to generate.'
-
-      - lf-infra-parameters:
-         project: 'OnosSystemTest'
-         branch: 'master'
-         stream: 'master'
-         lftools-version: '<1.0.0'
-
-    pipeline-scm:
-      script-path: '{jenkins-path}/SCPF_Graph_Generator'
-      scm:
-        - git:
-           url: '{gitURL}'
-           branches:
-             - 'master'
-
-- job-template:
-    name: 'manual-graph-generator-trend'
-    description: |
-                  <!-- Managed by Jenkins Job Builder -->
-                  Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
-                  Graphs are stored in their respective Postjob pipeline.
-
-
-    <<: *var-init-boiler-plate
-    <<: *test-pipe-job-boiler-plate
-
-    parameters:
-
-      - choice:
-         name: ONOSbranch
-         choices:
-           - 'master'
-           - 'onos-2.1'
-           - 'onos-2.0'
-           - 'onos-1.15'
-           - 'onos-1.14'
-           - 'onos-1.13'
-           - 'onos-1.12'
-         description: "Possible branches (may vary depending on test)"
-
-      - choice:
-         name: NodeCluster
-         choices:
-           - VM
-           - BM
-           - Fabric
-         description: |
-                       Node cluster where the test graphs in the list are located. <br />
-                       List of the tests will be refreshed depends on the node cluster.
-
-      - text:
-         name: Test
-         default: |
-                   VM:
-                   {FUNC}
-                   {HA}
-                   BM:
-                   {USECASE}
-                   Fabric:
-                   {SR}
-                   {SRHA}
-         description: 'List of the tests to generate.'
-
-      - string:
-         name: Builds
-         default: '20'
-         description: 'Builds to show in the graph.'
-
-      - lf-infra-parameters:
-         project: 'OnosSystemTest'
-         branch: 'master'
-         stream: 'master'
-         lftools-version: '<1.0.0'
-
-    pipeline-scm:
-      script-path: '{jenkins-path}/Trend_Graph_Generator'
-      scm:
-        - git:
-           url: '{gitURL}'
-           branches:
-             - 'master'
-
-- job-template:
     name: 'manual-graph-generator-overall'
     description: |
                   <!-- Managed by Jenkins Job Builder -->
@@ -547,8 +430,6 @@
     <<: *test-pipe-init-procedure-plate
 
     jobs:
-      - 'manual-graph-generator-SCPF'
-      - 'manual-graph-generator-trend'
       - 'manual-graph-generator-overall'
       - 'graph-generator-CHO'