Run the SR-Log job on the correct node
- When running tofino tests on the QA-Pod, make sure to use the correct
node for saving logs
Change-Id: I1ab4825b0ad53bdbc39c09b05908ece18aacdcbd
diff --git a/TestON/JenkinsFile/CommonJenkinsFile.groovy b/TestON/JenkinsFile/CommonJenkinsFile.groovy
index ac0e4da..0641558 100644
--- a/TestON/JenkinsFile/CommonJenkinsFile.groovy
+++ b/TestON/JenkinsFile/CommonJenkinsFile.groovy
@@ -313,8 +313,13 @@
resultURL = ""
if ( category == "SR" || category == "SR-StratumBMv2" || category == "SR-Tofino" ){
- def post = build job: "SR-log-" + prefix, propagate: false
- resultURL = post.getAbsoluteUrl()
+ if ( category == "SR-Tofino" ){
+ prefix = "Tofino"
+ }
+ node( params.assignedNode ) {
+ def post = build job: "SR-log-" + prefix, propagate: false
+ resultURL = post.getAbsoluteUrl()
+ }
}
return resultURL
}