File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 67
67
displayName : ' Test for AutoGen Modules With PowerShell Core'
68
68
condition : and(succeeded(), eq('${{ parameters.testTarget }}', 'Test'))
69
69
continueOnError : true
70
+ env :
71
+ PowerShellPlatform : ${{ parameters.powerShellPlatform }}
70
72
71
73
- pwsh : |
72
74
$PipelineResult = Get-Content PipelineResult.json | ConvertFrom-Json
Original file line number Diff line number Diff line change 198
198
<BuildAction Condition =" '$(Configuration)' == 'Release'" >publish</BuildAction >
199
199
</PropertyGroup >
200
200
201
- <Exec Command =" $(PowerShellCoreCommandPrefix) " .\tools\ExecuteCIStep.ps1 -Build -RepoArtifacts $(RepoArtifacts) -Configuration $(Configuration) -GenerateDocumentationFile $(GenerateDocumentationFile) -EnableTestCoverage $(TurnOnTestCoverage) -BuildAction $(BuildAction)" " />
201
+ <Exec Command =" $(PowerShellCoreCommandPrefix) " .\tools\ExecuteCIStep.ps1 -Build -PullRequestNumber $(PullRequestNumber) - RepoArtifacts $(RepoArtifacts) -Configuration $(Configuration) -GenerateDocumentationFile $(GenerateDocumentationFile) -EnableTestCoverage $(TurnOnTestCoverage) -BuildAction $(BuildAction)" " />
202
202
203
203
<!-- Build version controller -->
204
204
<Exec Command =" dotnet build $(RepoTools)VersionController/VersionController.Netcore.csproj -c $(Configuration)" />
Original file line number Diff line number Diff line change 23
23
[String ]
24
24
$BuildAction = ' build' ,
25
25
26
+ [String ]
27
+ $PullRequestNumber ,
28
+
26
29
[String ]
27
30
$GenerateDocumentationFile ,
28
31
@@ -258,6 +261,7 @@ If ($Build)
258
261
}
259
262
$Template .$DependencyStep.Details += $Detail
260
263
}
264
+ $Template | Add-Member - NotePropertyName pull_request_number - NotePropertyValue $PullRequestNumber
261
265
262
266
ConvertTo-Json - Depth 10 - InputObject $Template | Out-File - FilePath " $RepoArtifacts /PipelineResult/PipelineResult.json"
263
267
# EndRegion
Original file line number Diff line number Diff line change 36
36
$Platform = " $ ( $Env: PowerShellPlatform ) - $OS "
37
37
$Template = Get-Content " $ArtifactPipelineInfoFolder /PipelineResult.json" | ConvertFrom-Json
38
38
39
- $DependencyStepList = $Template | Get-Member - MemberType NoteProperty | Select-Object - ExpandProperty Name | Where-Object { $_ -Ne " build" -And $_ -Ne " test" }
39
+ $DependencyStepList = $Template | Get-Member - MemberType NoteProperty | Select-Object - ExpandProperty Name | Where-Object { $_ -Ne " build" -And $_ -Ne " test" -And $_ -Ne " pull_request_number " }
40
40
ForEach ($Step In $DependencyStepList ) {
41
41
If ($Template .$Step.Details.Length -Ne 0 ) {
42
42
$Template .$Step.Details [0 ] | Add-Member - NotePropertyName Platform - NotePropertyValue $Platform - Force
@@ -145,7 +145,7 @@ ForEach ($Step In $Steps) {
145
145
$Content = " |Type|Cmdlet|Example|Line|RuleName|Description|Extent|Remediation|`n |---|---|---|---|---|---|---|---|`n "
146
146
}
147
147
ElseIf ($PhaseName -Eq " ux" ) {
148
- $Content = " |Type|Module|ResourceType|SubResourceType|Command|Description|Remediation| `n |--- |---|---|---|---|---|---|`n "
148
+ $Content = " |Type|Module|ResourceType|SubResourceType|Command|Description|`n |---|---|---|---|---|---|`n "
149
149
}
150
150
# EndRegion
151
151
@@ -164,7 +164,7 @@ ForEach ($Step In $Steps) {
164
164
$Content += " |$ErrorTypeEmoji |$ ( $Issue.Target ) |$ ( $Issue.Example ) |$ ( $Issue.Line ) |$ ( $Issue.RuleName ) |$ ( $Issue.Description ) |$ ( $Issue.Extent ) |$ ( $Issue.Remediation ) |`n "
165
165
}
166
166
ElseIf ($PhaseName -Eq " ux" ) {
167
- $Content = " |$ErrorTypeEmoji |$ ( $Issue.Module ) |$ ( $Issue.ResourceType ) |$ ( $Issue.SubResourceType ) |$ ( $Issue.Command ) |$ ( $Issue.Description ) | $ ( $Issue .Remediation ) |`n "
167
+ $Content + = " |$ErrorTypeEmoji |$ ( $Issue.Module ) |$ ( $Issue.ResourceType ) |$ ( $Issue.SubResourceType ) |$ ( $Issue.Command ) |$ ( $Issue.Description ) |`n "
168
168
}
169
169
# EndRegion
170
170
}
You can’t perform that action at this time.
0 commit comments