Fixing Jenkins Pipeline bugs

Change-Id: I83ad3c9a2fd20a7afd06e5daac74a12245bd1d02
diff --git a/TestON/JenkinsFile/CommonJenkinsFile.groovy b/TestON/JenkinsFile/CommonJenkinsFile.groovy
index da75d4d..4081499 100644
--- a/TestON/JenkinsFile/CommonJenkinsFile.groovy
+++ b/TestON/JenkinsFile/CommonJenkinsFile.groovy
@@ -115,22 +115,13 @@
 }
 
 def generateGraphs(){
-    if ( category == "SCPF" ){
-        jobToRun = "manual-graph-generator-SCPF"
-        ONOSbranchParam = [ $class: 'StringParameterValue', name: 'ONOSbranch', value: test_list.addPrefixToBranch( branch ) ]
-        isOldFlowParam = [ $class: 'BooleanParameterValue', name: 'isOldFlow', value: true ]
-        // leaving Test param empty to use default values
-        build job: jobToRun, propagate: false, parameters: [ ONOSbranchParam, isOldFlowParam ]
-
-        isOldFlowParam = [ $class: 'BooleanParameterValue', name: 'isOldFlow', value: false ]
-        build job: jobToRun, propagate: false, parameters: [ ONOSbranchParam, isOldFlowParam ]
-    } else {
-        // generate the overall graph of the FUNC tests.
-        funcs.generateOverallGraph( prop, testsToRunStrList, graphPaths[ "saveDirectory" ] )
+    if ( category != "SCPF" ){
+        // generate the overall graph of the non SCPF tests.
+        funcs.generateOverallGraph( prop, testsToRun, graphPaths[ "saveDirectory" ] )
     }
 }
 
 def sendToSlack(){
-    // send the notification to Slack that running FUNC tests was ended.
+    // send the notification to Slack that running tests ended.
     funcs.sendResultToSlack( start, prop[ "manualRun" ], prop[ "WikiPrefix" ] )
 }
diff --git a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
index 9437b61..eddb588 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
@@ -323,7 +323,7 @@
             throw new Exception( "Abnormal test result." )
         }
         else {
-            print "Test results are normal."
+            print "Test results are OK."
         }
     }
 }
@@ -470,7 +470,7 @@
 }
 
 
-def generateOverallGraph( prop, testCategory, graph_saved_directory ){
+def generateOverallGraph( prop, tests, graph_saved_directory ){
     // generate the overall graph for the test
 
     if ( isPostingResult( prop[ "manualRun" ], prop[ "postResult" ] ) ){
@@ -481,7 +481,7 @@
                     string( credentialsId: 'db_user', variable: 'user' ),
                     string( credentialsId: 'db_host', variable: 'host' ),
                     string( credentialsId: 'db_port', variable: 'port' ) ] ) {
-                testList = generalFuncs.getTestList( testCategory )
+                testList = test_list.getTestListAsString( tests )
                 sh '''#!/bin/bash
                    ''' +
                    generalFuncs.basicGraphPart( trend_generator_file, host, port,