First test
Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/49c5ab89 Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/49c5ab89 Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/49c5ab89 Branch: refs/heads/citest Commit: 49c5ab8962630e33dade28c7adb384e4983cabeb Parents: acbd53d Author: Martin Stockhammer <[email protected]> Authored: Sun May 14 18:20:18 2017 +0200 Committer: Martin Stockhammer <[email protected]> Committed: Sun May 14 18:20:18 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/updateSeleniumDrivers.ps1 | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/49c5ab89/src/ci/scripts/updateSeleniumDrivers.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 new file mode 100644 index 0000000..98dc123 --- /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 <[email protected]> +# 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 +} +
