From 6f520e2f6db64306a799ab659e60e07a9e3cff2d Mon Sep 17 00:00:00 2001 From: "valentin.radulescu" Date: Tue, 21 Jan 2020 12:23:51 -0800 Subject: [PATCH] Fix issue related to substring search JIRA:VAL-78 Signed-off-by: valentin.radulescu Change-Id: I17dee3c41a2046927b085205c096507452560506 --- jjb/shell/run_bluval.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.16.6