Skip to content

Commit

Permalink
add possibility to set environment variables by maven
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz-eitco-de committed Jun 18, 2024
1 parent adc8afb commit 348a11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void execute() throws MojoExecutionException {

File localNugetRepository = getUnresolvedLocalNugetRepositoryDirectory();

dotnetExecutor.upsertNugetSource(localNugetRepository.getPath(), localMavenNugetRepositoryName, null, null, null);
dotnetExecutor.upsertNugetSource(localNugetRepository.getPath(), localMavenNugetRepositoryName, null, null, DotnetExecutor.NugetConfigLocation.USER);

for (Map.Entry<String, String> entry : nugetSources.entrySet()) {
String key = entry.getKey();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/eitco/cicd/dotnet/NugetPushMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void execute() throws MojoExecutionException {

repository = usedRepositoryName;

dotnetExecutor.upsertNugetSource(repositoryUrl, usedRepositoryName, nugetServerUser, apiKey);
dotnetExecutor.upsertNugetSource(repositoryUrl, usedRepositoryName, nugetServerUser, apiKey, null);
}

dotnetExecutor.push(apiKey, repository);
Expand Down

0 comments on commit 348a11b

Please sign in to comment.