-
-
Save Wesley-Lomax/ce0e6da7870d0cbcf820 to your computer and use it in GitHub Desktop.
Sitecore Ship - Publish Site Curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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