From: valentin.radulescu Date: Tue, 21 Jan 2020 20:23:51 +0000 (-0800) Subject: Fix issue related to substring search X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=6f520e2f6db64306a799ab659e60e07a9e3cff2d;p=ci-management.git Fix issue related to substring search JIRA:VAL-78 Signed-off-by: valentin.radulescu Change-Id: I17dee3c41a2046927b085205c096507452560506 --- diff --git a/jjb/shell/run_bluval.sh b/jjb/shell/run_bluval.sh index cc88171..de42ca0 100755 --- a/jjb/shell/run_bluval.sh +++ b/jjb/shell/run_bluval.sh @@ -21,7 +21,7 @@ info () { } has_substring() { - [ "$1" != "${2/$1/}" ] + [[ $1 =~ $2 ]] } change_res_owner() { @@ -168,8 +168,8 @@ else BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}/" zip -r results.zip ./results lftools deploy nexus-zip "$NEXUS_URL" logs "$NEXUS_PATH" results.zip + rm results.zip fi -rm results.zip rm -f ~/.netrc