working on script for winscp

This commit is contained in:
Joseph Lenox 2017-04-04 21:47:24 -05:00
parent 3d0e5bf351
commit 21aa301729
2 changed files with 6 additions and 6 deletions

View File

@ -42,4 +42,4 @@ on_success:
on_failure:
- ps:
on_finish:
- ps:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

View File

@ -3,10 +3,10 @@
# UPLOAD_USER - user to upload to sftp server
# KEY is assumed to be path to a ssh key for UPLOAD_USER
param (
[parameter(Mandatory=$true, ParameterSetName="dir")] [string]$DIR,
[parameter(Mandatory=$true, ParameterSetName="key")] [string]$KEY,
[parameter(Mandatory=$true, ParameterSetName="file")] [string]$FILES
Param(
[string]$DIR,
[string]$KEY,
[string]$FILE
)
UUSER=$env:UPLOAD_USER
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR /hostkey=* /privatekey=$KEY /upload $FILES
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR/ /hostkey=* /privatekey=$KEY /upload $FILES