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: I4ebc6f1bc32523c90cb5d0f89a8962cb7b5e9120
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat authored and sandupostaru committed Jul 7, 2020
1 parent 2436f6a commit a3017ca
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-.*macosx-cocoa-x86.*zip)'/
regex = /(capella-[\d.]*-macosx-cocoa-x86.*zip)'/
break

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

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

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

Expand Down

0 comments on commit a3017ca

Please sign in to comment.