Merge "Moved package testing logic outside of stage in update package pipeline"
diff --git a/update-package.groovy b/update-package.groovy
index e66bf9d..6c31c95 100644
--- a/update-package.groovy
+++ b/update-package.groovy
@@ -67,13 +67,14 @@
                    input message: "Approve live package upgrades on ${targetLiveSubset} nodes?"
                 }
             }
-            if (TARGET_PACKAGES != "") {
-                command = "pkg.install";
-                packages = TARGET_PACKAGES.tokenize(' ')
-            }else {
-                command = "pkg.upgrade"
-                packages = null
-            }
+        }
+
+        if (TARGET_PACKAGES != "") {
+            command = "pkg.install";
+            packages = TARGET_PACKAGES.tokenize(' ')
+        }else {
+            command = "pkg.upgrade"
+            packages = null
         }
 
         stage('Apply package upgrades on sample') {