daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Nov 6th, 2018 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. & .DbUp.exe | Write-Host
  2.    
  3. "DbUp Deployment Script starting." | Write-Host
  4. $pinfo.Username = $OctopusParameters['serviceCustomAccountName']
  5. $pinfo.Domain = "DOMAIN"
  6. $pinfo.Password = (ConvertTo-SecureString -String $OctopusParameters['serviceCustomAccountPassword'] -AsPlainText -Force)
  7. $pinfo.FileName = "C:DbUp.exe"
  8. $pinfo.RedirectStandardError = $true
  9. $pinfo.RedirectStandardOutput = $true
  10. $pinfo.UseShellExecute = $false
  11. $pinfo.Arguments = ""
  12. $p = New-Object System.Diagnostics.Process
  13. $p.StartInfo = $pinfo
  14. $p.Start()
  15. $p.WaitForExit()
  16. $p.StandardOutput.ReadToEnd() | Write-Host
  17. $p.StandardError.ReadToEnd() | Write-Host
  18. "DbUp Deployment Script finished." | Write-Host
  19.    
  20. DbUp Deployment Script starting.
  21. True
  22. DbUp Deployment Script finished.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top