Created
April 14, 2015 01:36
-
-
Save DamianMac/9615390a98e0cb502571 to your computer and use it in GitHub Desktop.
Upload Project Logo to Octopus Deploy with Powershell
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
$octopusServerUri = "http://serveraddress" | |
$octopusApiKey = "API-APIKEY" | |
$projectId = "projects-1" | |
$filePath = "D:\photos\picture.jpg" | |
Write-Verbose "Attempting to push a new logo" | |
$logoUri = "$octopusServerUri/api/projects/$projectID/logo?apikey=$octopusApiKey" | |
Write-Host $logoUri | |
$wc = New-Object -typeName System.Net.WebClient | |
$res = $wc.UploadFile($logoUri, "POST", $filePath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment