Commit d00ab4cd authored by zhangdd's avatar zhangdd

test

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent d5f58f6b
......@@ -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"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment