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
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code | |
#requires -Version 5.0 | |
param( | |
# Your Live ID for MSDN login | |
[Parameter(Mandatory)] | |
[PSCredential] | |
[System.Management.Automation.CredentialAttribute()] | |
$Credential, | |
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file) |
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
<# | |
This script will list all the artifacts related to this release and then It'll download | |
the one declared on the variable $ArtifactName to the path $downloadPath | |
Lets say you create an artifact when you deploy to Staging and you want to download | |
it during your deployment to Production. This script will use the current release ID at the time of the Prod deployment (which would be shared | |
between your deployment to Stage and to Prod) and then It'll use the octopus API to fetch the artifact. | |
#> | |
##Config (What you need to touch) |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
class TenCSharpOneLiners | |
{ | |
static void Main() | |
{ |