File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ echo "BUILD_NUMBER: $BUILD_NUMBER"
29
29
echo " PREFIX: $PREFIX "
30
30
31
31
git fetch origin --prune --tags || failure " git fetch"
32
- BUILD_ID=$( git describe --abbrev=15 --always --long --tags | sed " s/^.\+-\([0-9]\+-g[0-9a-f]\+\)\$ /.${BUILD_NUMBER} -\1/" )
32
+ BUILD_ID=$( git describe --abbrev=15 --always --long --tags | sed -e " s/^.\+-\([0-9]\+-g[0-9a-f]\+\)\$ /.${BUILD_NUMBER} -\1/" -e " s/^\([0-9a-f]\+\) \$ /. ${BUILD_NUMBER} -g\1/ " ) $( git show --abbrev=15 --format=-t%t | head -n 1 )
33
33
echo " BUILD_ID: $BUILD_ID "
34
34
35
35
step_finish " prepare"
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ function find_free_port {
19
19
local h=$(( l+ n- 1 ))
20
20
if [ $h -gt 65535 ]; then continue ; fi
21
21
if [ $h -ge $begin -a $h -lt $end ]; then continue ; fi
22
+ # LY: skip default ports to avoid conflicts with local 'make test'
23
+ if [ $l -ge 9010 -a $h -lt 9017 ]; then continue ; fi
22
24
local r=$l
23
25
for p in $( seq $l $h ) ; do
24
26
if netstat -ant | sed -e ' /^tcp/ !d' -e ' s/^[^ ]* *[^ ]* *[^ ]* *.*[\.:]\([0-9]*\) .*$/\1/' | grep -q -w $p ; then
You can’t perform that action at this time.
0 commit comments