From: Martin Stockhammer Date: Sun, 14 May 2017 16:20:18 +0000 (+0200) Subject: First test X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49c5ab8962630e33dade28c7adb384e4983cabeb;p=archiva.git First test --- diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 new file mode 100644 index 000000000..98dc123a9 --- /dev/null +++ b/src/ci/scripts/updateSeleniumDrivers.ps1 @@ -0,0 +1,39 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +# Powershell script updating Selenium drivers on ci server +# +# Author: Martin Stockhammer +# Date : 2017-04-30 +# +# Description: + + +$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" +$downloadDir = Split-Path $downloadFile -Parent + +if(!(Test-Path -Path $downloadDir )){ + New-Item -ItemType directory -Path $downloadFile + +} +if !(Test-Path -Path $downloadFile )){ + Invoke-WebRequest -Uri $url -OutFile $downloadFile +} +