File tree Expand file tree Collapse file tree
source/Calamari.Shared/Integration/Packages/Download/Scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Ideally this single line would replace everything below ... But there appears to be a bug somewhere
22# helm fetch --repo $Url --username $Username --password $Password --version $version --destination $TempStaging $package
33
4+ if (! $ (Get-Command helm - errorAction SilentlyContinue))
5+ {
6+ Write-Error " The helm client tool does not appear to be available on the current path.`n See http://g.octopushq.com/HelmLimitations for more details."
7+ Exit 1
8+ }
9+
410$TempHelmHome = $ ((Resolve-Path .\).Path) + " \helm"
511$TempStaging = $ ((Resolve-Path .\).Path) + " \staging"
612
@@ -30,7 +36,4 @@ if(!$?) {
3036
3137Write-Host " Fetching Chart"
3238Write-Verbose " helm fetch --home $TempHelmHome --version $Version --destination $TempStaging $TempRepoName /$Package "
33- helm fetch -- home $TempHelmHome -- version $Version -- destination $TempStaging $TempRepoName / $Package
34-
35- # $files=(Get-ChildItem "$TempStaging/*");
36- # Set-OctopusVariable -name "PackageFile" -value $files[0].FullName;
39+ helm fetch -- home $TempHelmHome -- version $Version -- destination $TempStaging $TempRepoName / $Package
Original file line number Diff line number Diff line change 1-
1+ command -v " helm" & > /dev/null
2+ if [[ $? != 0 ]]; then
3+ echo >&2 " The helm client tool does not appear to be available on the current path. See http://g.octopushq.com/HelmLimitations for more details."
4+ deps=1;
5+ fi
6+
27username=$( get_octopusvariable " Username" )
38password=$( get_octopusvariable " Password" )
49url=$( get_octopusvariable " Url" )
You can’t perform that action at this time.
0 commit comments