Commit d5f58f6b authored by zhangdd's avatar zhangdd

test

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent 2d23455f
......@@ -5,12 +5,7 @@ node{
script{
def pom = readMavenPom file: 'pom.xml'
echo "start echo pom"
echo "${pom}"
arr=(${pom})
for s in ${arr[@]}
do
echo "$s"
done
echo "$pom"
echo "end echo pom"
}
......
#!/bin/bash
string='com.schbrain.kp:test:jar:0.0.1-SNAPSHOT'
#对IFS变量 进行替换处理
OLD_IFS="$IFS"
IFS=":"
array=($string)
IFS="$OLD_IFS"
for var in ${array[@]}
do
echo $var
done
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