Skip to content

Commit 4ae9cbf

Browse files
committed
Made logging consistent between bash and powershell
1 parent 554cd72 commit 4ae9cbf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

source/Calamari/Kubernetes/Scripts/KubectlBashContext.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ get_kubectl
159159
configure_kubectl_path
160160
setup_context
161161
create_namespace
162-
cat $KUBECONFIG
163162
echo "##octopus[stdout-verbose]"
163+
cat $KUBECONFIG
164164
echo "Invoking target script \"$(get_octopusvariable "OctopusKubernetesTargetScript")\" with $(get_octopusvariable "OctopusKubernetesTargetScriptParameters") parameters"
165165
echo "##octopus[stdout-default]"
166166

source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ Write-Host "##octopus[stdout-verbose]"
183183
ConfigureKubeCtlPath
184184
SetupContext
185185
CreateNamespace
186+
echo "##octopus[stdout-verbose]"
186187
Get-Content $env:KUBECONFIG
187-
Write-Host "##octopus[stdout-default]"
188188
Write-Verbose "Invoking target script $OctopusKubernetesTargetScript with $OctopusKubernetesTargetScriptParameters parameters"
189+
echo "##octopus[stdout-default]"
189190

190191
Invoke-Expression ". `"$OctopusKubernetesTargetScript`" $OctopusKubernetesTargetScriptParameters"

0 commit comments

Comments
 (0)