Skip to content

Commit

Permalink
doc: Update 08-cli-tools.md with AddProcessAdditionalArguments
Browse files Browse the repository at this point in the history
updated according to API changes in 9.0.0
  • Loading branch information
Georg Eckert (ZEISS) committed Dec 2, 2024
1 parent 482f5ac commit e162fed
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/03-common/08-cli-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,20 @@ This example will always have 5 packages being pushed simultaneously. Possible e

### Custom Arguments

It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessArgumentConfigurator` method can be used to add them manually:
It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessAdditionalArguments` or `AddProcessAdditionalArguments` methods can be used to add them manually:

```csharp
MSBuildTasks.MSBuild(_ => _
.SetTargetPath(SolutionFile)
.SetProcessArgumentConfigurator(_ => _
.Add("/r")));
.SetProcessAdditionalArguments( "/r" ));
```

If secrets are involved, add them with the `AddProcessRedactedSecrets` first:

```csharp
SonarScannerTasks.SonarScannerBegin(_ => _
.AddProcessRedactedSecrets( Secrets.SonarQubeAccessToken )
.AddProcessAdditionalArguments( $"/d:sonar.login={Secrets.SonarQubeAccessToken}"));
```

<!--
Expand All @@ -202,7 +209,9 @@ MSBuildTasks.MSBuild(_ => _
SetEnvironmentVariables
LogOutput
When
SetArgumentConfigurator
SetProcessAdditionalArguments
AddProcessAdditionalArguments
AddProcessRedactedSecrets
-->

### Exit Code Handling
Expand Down

0 comments on commit e162fed

Please sign in to comment.