Changed nuget credentials to the CI token
This commit is contained in:
parent
e556d74fd1
commit
c8d6258556
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ build_windows:
|
|||
if ($env:NUGET_USERNAME -and $env:NUGET_PASSWORD) {
|
||||
Write-Host 'Configuring private NuGet source Nuget-GitLab-AIFotoONLUS...'
|
||||
try { & $dotnetExe nuget remove source Nuget-GitLab-AIFotoONLUS } catch {}
|
||||
& $dotnetExe nuget add source $nugetUrl --name Nuget-GitLab-AIFotoONLUS --username $env:NUGET_USERNAME --password $env:NUGET_PASSWORD --store-password-in-clear-text
|
||||
& $dotnetExe nuget add source $nugetUrl --name Nuget-GitLab-AIFotoONLUS --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
|
||||
} else {
|
||||
Write-Host 'NUGET_USERNAME/NUGET_PASSWORD not set; skipping private NuGet source configuration.'
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ publish_release:
|
|||
if ($env:NUGET_USERNAME -and $env:NUGET_PASSWORD) {
|
||||
Write-Host 'Configuring private NuGet source Nuget-GitLab-AIFotoONLUS...'
|
||||
try { & $dotnetExe nuget remove source Nuget-GitLab-AIFotoONLUS } catch {}
|
||||
& $dotnetExe nuget add source $nugetUrl --name Nuget-GitLab-AIFotoONLUS --username $env:NUGET_USERNAME --password $env:NUGET_PASSWORD --store-password-in-clear-text
|
||||
& $dotnetExe nuget add source $nugetUrl --name Nuget-GitLab-AIFotoONLUS --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
|
||||
} else {
|
||||
Write-Host 'NUGET_USERNAME/NUGET_PASSWORD not set; skipping private NuGet source configuration.'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue