Fix issue related to substring search 06/2206/2
authorvalentin.radulescu <valentin.radulescu@enea.com>
Tue, 21 Jan 2020 20:23:51 +0000 (12:23 -0800)
committervalentin.radulescu <valentin.radulescu@enea.com>
Wed, 22 Jan 2020 19:14:10 +0000 (11:14 -0800)
JIRA:VAL-78

Signed-off-by: valentin.radulescu <valentin.radulescu@enea.com>
Change-Id: I17dee3c41a2046927b085205c096507452560506

jjb/shell/run_bluval.sh

index cc88171..de42ca0 100755 (executable)
@@ -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