Remove spaces and newline from ACTUALFEATURES
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-controller.sh
index 0b14414017ef9e61dcb57b131af6dd94ac59c535..50d15a8d2fbfee2d104c7c716bd1bab056fe5c91 100644 (file)
@@ -10,6 +10,9 @@ if [ ${CONTROLLERSCOPE} == 'all' ]; then
 else
     ACTUALFEATURES="${CONTROLLERFEATURES}"
 fi
+# Some versions of jenkins job builder result in feature list containing spaces
+# and ending in newline. Remove all that.
+ACTUALFEATURES=`echo "${ACTUALFEATURES}" | tr -d '\n \r'`
 
 cat > ${WORKSPACE}/deploy-controller-script.sh <<EOF