Improve listing of pkgs when user specifies pkg
- Add messaging that explicitely tells that the list of packages shows
all available updates of all packages.
In the future pkg.list_repo_pkgs could be used though it's only
available since salt version 2017.7.0
Change-Id: I66e14c41b2d0a8cf9109945775976c7906da2522
diff --git a/update-package.groovy b/update-package.groovy
index ea2259c..20e6541 100644
--- a/update-package.groovy
+++ b/update-package.groovy
@@ -53,7 +53,11 @@
}
stage("List package upgrades") {
+ common.infoMsg("Listing all the packages that have a new update available on test nodes: ${targetTestSubset}")
salt.runSaltProcessStep(saltMaster, targetTestSubset, 'pkg.list_upgrades', [], null, true)
+ if(TARGET_PACKAGES != "" && TARGET_PACKAGES != "*"){
+ common.infoMsg("Note that only the ${TARGET_PACKAGES} would be installed from the above list of available updates on the ${targetTestSubset}")
+ }
}
stage('Confirm live package upgrades on sample') {