Fix for graph postjob build in Jenkins Pipeline
Change-Id: I219b7686b7edd1353716dae2a6074ca4e09c1fdd
diff --git a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
index 823a07e..4e01437 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
@@ -261,8 +261,9 @@
// post the result by triggering postjob.
// prop : property dictionary that was read from the machine.
// graphOnly : if it is graph generating job
-
- if ( graphOnly || isPostingResult( prop[ "manualRun" ], prop[ "postResult" ] ) ){
+ if ( graphOnly ){
+ def post = build job: "postjob-" + machine, propagate: false
+ } else if ( isPostingResult( prop[ "manualRun" ], prop[ "postResult" ] ) ){
def post = build job: "postjob-" + machineType[ testType ], propagate: false
}
}