Merge "Increase sleep time in SRRouting test"
diff --git a/TestON/JenkinsFile/CHO_Graph_Generator b/TestON/JenkinsFile/CHO_Graph_Generator
index 91ad9e5..26e7ca2 100644
--- a/TestON/JenkinsFile/CHO_Graph_Generator
+++ b/TestON/JenkinsFile/CHO_Graph_Generator
@@ -41,7 +41,6 @@
// create a bash script that will generate the graph
graphScript = generateGraphScript( branchList )
-
stage( 'Generating-Graph' ) {
// This will run on TestStation-Fabric5s node.
node( "TestStation-Fabric5s" ) {
@@ -55,6 +54,19 @@
postJob()
}
+saving_directory = fileRelated.jenkinsWorkspace + "postjob-Trellis-POD/"
+graphScript = generateGraphScript( branchList )
+stage( 'Generating-Graph-POD' ) {
+ // This will run on TestStation-Trellis-POD node.
+ node( "TestStation-Trellis-PODs" ) {
+ // run the bash script on this node.
+ runScript( graphScript )
+ }
+}
+stage( 'posting-result-POD' ) {
+ postJobPOD()
+}
+
def generateGraphScript( branchList ){
// Generate the bash script that will run the Rscript to make graph.
graphScript = ''''''
@@ -99,3 +111,9 @@
jobToRun = "postjob-Fabric5"
build job: jobToRun, propagate: false
}
+
+def postJobPOD(){
+ // Triggering jenkins job called `postjob-Trellis-POD`
+ jobToRun = "postjob-Trellis-POD"
+ build job: jobToRun, propagate: false
+}