Skip to content

Commit

Permalink
Merge pull request #901 from IgniteUI/IGvaleries-patch-1
Browse files Browse the repository at this point in the history
Update build-steps-template.yml
  • Loading branch information
IGvaleries authored Dec 16, 2024
2 parents 52f4c18 + aff66e1 commit 36a4a48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure-pipelines/templates/build-steps-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ steps:
continueOnError: true
inputs:
targetType: 'inline'
script: |
script: |
dotnet new nugetconfig --force
dotnet nuget add source ${{ parameters.igNuGetFeedUrl }} --name "IG ProGet NuGet" --allow-insecure-connections
# Manually add the allowInsecureConnections attribute to the nuget.config file
Expand All @@ -115,7 +115,7 @@ steps:
$addUsername = $nugetConfig.CreateElement("add")
Write-Host "adding username"
$userName = ${{ parameters.username }}
$userName = ConvertTo-SecureString "${{ parameters.username }}" -asPlainText -Force
Write-Host "username is"
Write-Host "$userName"
$addUsername.SetAttribute("key", "Username")
Expand All @@ -126,8 +126,9 @@ steps:
$addPassword = $nugetConfig.CreateElement("add")
Write-Host "adding password"
$password = ConvertTo-SecureString "${{ parameters.password}}" -asPlainText -Force
$addPassword.SetAttribute("key", "ClearTextPassword")
$add.SetAttribute("value", "${{ parameters.password }}")
$add.SetAttribute("value", "$password")
$source.AppendChild($addPassword)
$packageSourceCredentials.AppendChild($source)
Expand Down

0 comments on commit 36a4a48

Please sign in to comment.