Fix for manually running tests on support branches in Jenkins Pipelines
Change-Id: Iebd5fa8c2dc50c6f5075bf7b41229a65e66a49c5
diff --git a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
index 4e01437..9437b61 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
@@ -261,7 +261,11 @@
// post the result by triggering postjob.
// prop : property dictionary that was read from the machine.
// graphOnly : if it is graph generating job
+
if ( graphOnly ){
+ if ( machine == null ){
+ machine = machineType[ testType ]
+ }
def post = build job: "postjob-" + machine, propagate: false
} else if ( isPostingResult( prop[ "manualRun" ], prop[ "postResult" ] ) ){
def post = build job: "postjob-" + machineType[ testType ], propagate: false