From 23b89972a8403f96f6d71af6e5e50edc4b1de775 Mon Sep 17 00:00:00 2001 From: Tu Ton Date: Mon, 3 Aug 2020 14:30:28 +0200 Subject: [PATCH] Restrict the regex to find zip name Change-Id: I998525fcd1964e7b82e034b847af63f0916ca25f Signed-off-by: Tu Ton --- vars/capella.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vars/capella.groovy b/vars/capella.groovy index b54b2bf..6b57853 100644 --- a/vars/capella.groovy +++ b/vars/capella.groovy @@ -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 }