Update uninstall_osm method 99/6499/1 multi_stack
authorMike Marchetti <mmarchetti@sandvine.com>
Sat, 15 Sep 2018 18:43:07 +0000 (14:43 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Sat, 15 Sep 2018 18:43:07 +0000 (14:43 -0400)
Change-Id: Ie5432a4c75187b77233b82fa6899e0d5031cab17
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index e5da901..44b8d76 100644 (file)
@@ -40,7 +40,7 @@ properties([
     ])
 ])
 
-def uninstall_osm( stackName ) {
+def uninstall_osm(stackName) {
     sh """
          export OSM_USE_LOCAL_DEVOPS=true
          export PATH=$PATH:/snap/bin
@@ -247,13 +247,13 @@ node("${params.NODE}") {
         if ( params.DO_INSTALL ) {
             if (error) {
                 if ( !params.SAVE_CONTAINER_ON_FAIL ) {
-                    uninstall_osm ${container_name}
+                    uninstall_osm container_name
                 }
                 throw error 
             }
             else {
                 if ( !params.SAVE_CONTAINER_ON_PASS ) {
-                    uninstall_osm ${container_name}
+                    uninstall_osm container_name
                 }
             }
         }