If your looking to deploy packages files (wsp) from build serve to sharepoint server either staging,testing or production.
we will run a powershell script on Build server :
$password = $env:deploypassword | ConvertTo-SecureString -asPlainText -Force
$username = $env:deployusername
$cred = New-Object
System.Management.Automation.PSCredential($username,$password)
$session = New-PSSession -ComputerName "deployment server nmae or IP" -Authentication CredSSP –Credential $cred
Invoke-Command -Session $session -scriptblock {script path on sharepoint server}
Environments Variables:
$env:deployusername :user name has ability to deploy on sharepoint
$env:deploypassword : password for deployusername
$username: user name can connect to sharepoint server
$password: password for username.
we will run a powershell script on Build server :
$password = $env:deploypassword | ConvertTo-SecureString -asPlainText -Force
$username = $env:deployusername
$cred = New-Object
System.Management.Automation.PSCredential($username,$password)
$session = New-PSSession -ComputerName "deployment server nmae or IP" -Authentication CredSSP –Credential $cred
Invoke-Command -Session $session -scriptblock {script path on sharepoint server}
Environments Variables:
$env:deployusername :user name has ability to deploy on sharepoint
$env:deploypassword : password for deployusername
$username: user name can connect to sharepoint server
$password: password for username.
No comments:
Post a Comment