9 lines
361 B
PowerShell
9 lines
361 B
PowerShell
$Action=$args[0]
|
|
$Job=$args[1]
|
|
Write-Host $Action
|
|
Write-Host $Job
|
|
|
|
$Cred = New-Object System.Management.Automation.PSCredential ('user', (ConvertTo-SecureString 'passwd' -AsPlainText -Force))
|
|
Invoke-Command -ComputerName 172.16.0.1 -Credential $Cred -Authentication Negotiate -ScriptBlock {..\.jenkins\workspace\site_backup\site\site_backup.ps1 $Using:Action}
|
|
|