archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marti...@apache.org
Subject archiva git commit: Test
Date Sun, 14 May 2017 18:33:05 GMT
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 <martin_s@apache.org>
Authored: Sun May 14 20:32:54 2017 +0200
Committer: Martin Stockhammer <martin_s@apache.org>
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 <martin_s@apache.org>  
-# 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
 }
 


Mime
View raw message