diff --git a/Jenkinsfile b/Jenkinsfile index 41cbb15351b7c7c17445bd5ea7ee37123450d71a..aecab2b6c54e28ccc18a0423f4f470a66316bc02 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,17 @@ node{ def pom = readMavenPom file: 'pom.xml' echo "start echo pom" echo "$pom" + #对IFS变量 进行替换处理 + OLD_IFS="$IFS" + IFS=":" + array=($pom) + IFS="$OLD_IFS" + + for var in ${array[@]} + do + echo $var + done + echo "end echo pom" }