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=refs%2Fchanges%2F06%2F2206%2F2;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