killing the exception when trying to add a duplicate nuget source
All checks were successful
CI Build / CI Build API (pull_request) Successful in 32s
All checks were successful
CI Build / CI Build API (pull_request) Successful in 32s
This commit is contained in:
parent
47bede52d1
commit
7992e3de0f
@ -113,12 +113,19 @@ class Build : NukeBuild
|
|||||||
.DependsOn(Pack, CreateAndPushGitTag)
|
.DependsOn(Pack, CreateAndPushGitTag)
|
||||||
.Executes(() =>
|
.Executes(() =>
|
||||||
{
|
{
|
||||||
DotNetTasks.DotNetNuGetAddSource(c => c
|
try
|
||||||
.EnableStorePasswordInClearText()
|
{
|
||||||
.SetUsername(GiteaPackageOwnerUser)
|
DotNetTasks.DotNetNuGetAddSource(c => c
|
||||||
.SetPassword(GiteaPackageOwnerPassword)
|
.EnableStorePasswordInClearText()
|
||||||
.SetName("Gitea")
|
.SetUsername(GiteaPackageOwnerUser)
|
||||||
.SetSource($"{GiteaNugetSourceName}/index.json"));
|
.SetPassword(GiteaPackageOwnerPassword)
|
||||||
|
.SetName("Gitea")
|
||||||
|
.SetSource($"{GiteaNugetSourceName}/index.json"));
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Warning("Error adding Gitea source: {e}", e);
|
||||||
|
}
|
||||||
|
|
||||||
DotNetTasks.DotNetNuGetPush(s => s
|
DotNetTasks.DotNetNuGetPush(s => s
|
||||||
.SetSource($"{GiteaNugetSourceName}/symbols")
|
.SetSource($"{GiteaNugetSourceName}/symbols")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user