From d00ab4cdb17762ef2a9dab52da9b41746fec1931 Mon Sep 17 00:00:00 2001 From: zhangdd <86431843@qq.com> Date: Thu, 1 Apr 2021 09:24:35 +0800 Subject: [PATCH] test Signed-off-by: zhangdd <86431843@qq.com> --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 41cbb15..aecab2b 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" } -- GitLab