Fix working with user input in update pipeline
Change-Id: I5f3285820b6d04acd6fc2924907cf7bc7ae976c2
diff --git a/update-package.groovy b/update-package.groovy
index b17eb01..d3873ec 100644
--- a/update-package.groovy
+++ b/update-package.groovy
@@ -67,8 +67,8 @@
id: 'userInput', message: 'Insert package names for update', parameters: [
[$class: 'TextParameterDefinition', defaultValue: '', description: 'Package names (or *)', name: 'packages']
])
- if(userInput['packages'] != ""){
- packages = userInput['packages'].tokenize(" ")
+ if(userInput!= ""){
+ packages = userInput.tokenize(" ")
}
}
}else{