Skip to content

Commit 6e80d8c

Browse files
authored
Fix README.md
1 parent ed6420b commit 6e80d8c

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.build/README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,21 @@ The script checks for changes to:
2727

2828
### Azure Pipelines
2929

30-
```yaml
31-
- powershell: |
32-
.build/Test-ShouldRunDscResourceIntegrationTests.ps1
33-
displayName: 'Determine if DSC resource tests should run'
34-
```
35-
3630
The Azure Pipelines task sets an output variable that downstream stages can
3731
use to conditionally run DSC resource integration tests. The script returns
38-
a boolean value that the pipeline captures using:
32+
a boolean value that the pipeline captures, e.g.:
3933

40-
```powershell
41-
Write-Host "##vso[task.setvariable variable=ShouldRunDscResourceIntegrationTests;isOutput=true]$shouldRun"
34+
```yaml
35+
- powershell: |
36+
$shouldRun = ./.build/Test-ShouldRunDscResourceIntegrationTests.ps1 -BaseBranch $targetBranch -CurrentBranch HEAD
37+
Write-Host "##vso[task.setvariable variable=ShouldRunDscResourceIntegrationTests;isOutput=true]$shouldRun"
38+
displayName: 'Determine if DSC resource tests should run'
4239
```
4340
4441
Downstream stages reference this output variable using the pattern:
4542
`dependencies.JobName.outputs['StepName.VariableName']` to gate their
4643
execution based on whether DSC resource tests should run.
4744

48-
**Note**: The step sets an output variable with `isOutput=true` using the
49-
variable name `ShouldRunDscResourceIntegrationTests`. Downstream stages consume
50-
this using the syntax:
51-
`dependencies.Quality_Test_and_Unit_Test.outputs['Determine_DSC_Resource_Test_Requirements.determineDscResourceTests.ShouldRunDscResourceIntegrationTests']`
52-
5345
### Command Line
5446

5547
```powershell

0 commit comments

Comments
 (0)