Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 13A16200C74 for ; Sun, 14 May 2017 20:33:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12357160BB7; Sun, 14 May 2017 18:33:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5833D160BA3 for ; Sun, 14 May 2017 20:33:06 +0200 (CEST) Received: (qmail 88069 invoked by uid 500); 14 May 2017 18:33:05 -0000 Mailing-List: contact commits-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@archiva.apache.org Delivered-To: mailing list commits@archiva.apache.org Received: (qmail 88060 invoked by uid 99); 14 May 2017 18:33:05 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 May 2017 18:33:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7472ADFBC8; Sun, 14 May 2017 18:33:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: martin_s@apache.org To: commits@archiva.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: archiva git commit: Test Date: Sun, 14 May 2017 18:33:05 +0000 (UTC) archived-at: Sun, 14 May 2017 18:33:07 -0000 Repository: archiva Updated Branches: refs/heads/citest a81e31ddd -> 6ff7f0099 Test Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/6ff7f009 Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/6ff7f009 Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/6ff7f009 Branch: refs/heads/citest Commit: 6ff7f00992037377b23fcba0506e780d00221524 Parents: a81e31d Author: Martin Stockhammer Authored: Sun May 14 20:32:54 2017 +0200 Committer: Martin Stockhammer Committed: Sun May 14 20:32:54 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/updateSeleniumDrivers.ps1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/6ff7f009/src/ci/scripts/updateSeleniumDrivers.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 index f5e9b20..81e986c 100644 --- a/src/ci/scripts/updateSeleniumDrivers.ps1 +++ b/src/ci/scripts/updateSeleniumDrivers.ps1 @@ -20,10 +20,18 @@ # Powershell script updating Selenium drivers on ci server # # Author: Martin Stockhammer -# Date : 2017-04-30 +# Date : 2017-05-14 # # Description: +$psVersion = $PSVersionTable.PSVersion + +Write-Output "PS-Version: $psVersion" + +param ( + [switch]$Verbose = $False, + [switch]$Force = $False +) $url = "http://selenium-release.storage.googleapis.com/2.53/IEDriverServer_x64_2.53.1.zip" $downloadFile = "C:\jenkins\tools\iedriver\2.53.1\win64\IEDriverServer_x64_2.53.1.zip" @@ -33,7 +41,8 @@ if(!(Test-Path -Path $downloadDir )){ New-Item -ItemType directory -Path $downloadFile } -if (!(Test-Path -Path $downloadFile )){ +if ($Force -Or !(Test-Path -Path $downloadFile )){ Invoke-WebRequest -Uri $url -OutFile $downloadFile + Expand-Archive $downloadFile -DestinationPath $downloadDir }