Skip to content

Commit

Permalink
allow unauthenticated nuget sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz-eitco-de committed Jun 18, 2024
1 parent 6ecc4c0 commit 5304b6e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,16 @@ public void execute() throws MojoExecutionException {
String key = entry.getKey();
String value = entry.getValue();

Server server = findServer(key);
Server server = settings.getServer(key);

dotnetExecutor.upsertNugetSource(value, key, decrypt(server.getUsername()), decrypt(server.getPassword()), null);
if (server == null) {

dotnetExecutor.upsertNugetSource(value, key, null, null, null);

} else {

dotnetExecutor.upsertNugetSource(value, key, decrypt(server.getUsername()), decrypt(server.getPassword()), null);
}
}
}

Expand Down

0 comments on commit 5304b6e

Please sign in to comment.