Skip to content

Commit

Permalink
Restrict the regex to find zip name
Browse files Browse the repository at this point in the history
Change-Id: I998525fcd1964e7b82e034b847af63f0916ca25f
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat committed Aug 3, 2020
1 parent a3017ca commit 23b8997
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vars/capella.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ def getDownloadURL(branch = "master", platform = "win", proxy = ""){

switch(platform){
case ~/mac/:
regex = /(capella-[\d.]*-macosx-cocoa-x86.*zip)'/
regex = /(capella-[\d.]*-macosx-cocoa-x86_64.zip)/
break

case ~/linux/:
regex = /(capella-[\d.]*-linux-gtk-x86.*zip)'/
regex = /(capella-[\d.]*-linux-gtk-x86_64.zip)/
break

case ~/win/:
regex = /(capella-[\d.]*-win32-win32-x86.*zip)'/
regex = /(capella-[\d.]*-win32-win32-x86_64.zip)/
break

default:
regex = /(capella-[\d.]*-win32-win32-x86.*zip)'/
regex = /(capella-[\d.]*-win32-win32-x86_64.zip)/
break
}

Expand Down

0 comments on commit 23b8997

Please sign in to comment.