Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

To fix the issue #50 about installing a service with custom credentials #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Try {

Write-Host ("##vso[task.setvariable variable=E34A69771F47424D9217F3A4D6BCDC95;issecret=true;]$servicePassword") # Make sure the password doesn't show up in the log.

$additionalSharedArguments += " -username ""$serviceUsername"" -password"
$additionalSharedArguments += " -username:""$serviceUsername"" -password"
if (-Not [string]::IsNullOrWhiteSpace($servicePassword)) {
$additionalSharedArguments += ":""$servicePassword"""
}
Expand Down Expand Up @@ -107,4 +107,4 @@ Try {
}
finally {
Trace-VstsLeavingInvocation $MyInvocation
}
}