Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Last active April 19, 2016 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wesley-Lomax/ce0e6da7870d0cbcf820 to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/ce0e6da7870d0cbcf820 to your computer and use it in GitHub Desktop.
Sitecore Ship - Publish Site Curl
$siteHostName = $OctopusParameters["Your.SiteName.Parameter"]
$PublishMode = $OctopusParameters["PublishMode"]
$CmsUrl = "http://$siteHostName/services/publish/$PublishMode"
$CurlPath = "C:\Tools\curl-7.48\bin\curl.exe"
$CurlCommand= "$CurlPath --request POST --silent --form ""source=master"" ""languages=en"" $CmsUrl"
Write-Output "INFO: Starting Invoke-Expression: $CurlCommand"
Invoke-Expression $CurlCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment