mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
param(
|
|
[string]$password
|
|
)
|
|
|
|
. ..\nupkg\common.ps1
|
|
|
|
if (!$password)
|
|
{
|
|
#reading password from file content
|
|
$sshPasswordFileName = "ssh-password.txt"
|
|
$password = Get-Content $sshPasswordFileName
|
|
echo "Using SSH password from $sshPasswordFileName ..."
|
|
}
|
|
|
|
if (!$password)
|
|
{
|
|
$password = Read-Host "Enter the Natro jenkins user password"
|
|
}
|
|
|
|
# Get the current version
|
|
[xml]$commonPropsXml = Get-Content "../common.props"
|
|
$version = $commonPropsXml.Project.PropertyGroup.Version
|
|
echo "`n---===[ Current version: $version ]===---"
|
|
|
|
#---------------------------------------------------------------------
|
|
Write-Info "Downloading release zip into Natro"
|
|
echo "`n---===[ Running SSH commands on NATRO ]===---"
|
|
echo "`nDownloading release file into Natro..."
|
|
|
|
plink.exe -ssh jenkins@94.73.164.234 -pw $password -P 22 -batch "powershell -File c:\ci\scripts\download-latest-abp-release.ps1 ${version}"
|
|
|
|
Write-Info "Completed: Downloading release zip into Natro completed"
|
|
#---------------------------------------------------------------------
|