From 49c5ab8962630e33dade28c7adb384e4983cabeb Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 14 May 2017 18:20:18 +0200 Subject: [PATCH] First test --- src/ci/scripts/updateSeleniumDrivers.ps1 | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/ci/scripts/updateSeleniumDrivers.ps1 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 +} + -- 2.39.5