-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[release/v7.4.15] Fix the APIScan pipeline #27282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SeeminglyScience
merged 1 commit into
PowerShell:release/v7.4.15
from
SeeminglyScience:backport-26016-7.4.15
Apr 16, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,7 +15,6 @@ jobs: | |||||
| - name: branchCounter | ||||||
| value: $[counter(variables['branchCounterKey'], 1)] | ||||||
| - group: DotNetPrivateBuildAccess | ||||||
| - group: Azure Blob variable group | ||||||
| - group: ReleasePipelineSecrets | ||||||
| - group: mscodehub-feed-read-general | ||||||
| - group: mscodehub-feed-read-akv | ||||||
|
|
@@ -72,34 +71,6 @@ jobs: | |||||
| workingDirectory: '$(repoRoot)' | ||||||
| retryCountOnTaskFailure: 2 | ||||||
|
|
||||||
| - task: AzurePowerShell@5 | ||||||
| displayName: Download winverify-private Artifacts | ||||||
| inputs: | ||||||
| azureSubscription: az-blob-cicd-infra | ||||||
| scriptType: inlineScript | ||||||
| azurePowerShellVersion: LatestVersion | ||||||
| workingDirectory: '$(repoRoot)' | ||||||
| pwsh: true | ||||||
| inline: | | ||||||
| # download smybols for getfilesiginforedist.dll | ||||||
| $downloadsDirectory = '$(Build.ArtifactStagingDirectory)/downloads' | ||||||
| $uploadedDirectory = '$(Build.ArtifactStagingDirectory)/uploaded' | ||||||
| $storageAccountName = "pscoretestdata" | ||||||
| $containerName = 'winverify-private' | ||||||
| $winverifySymbolsPath = New-Item -ItemType Directory -Path '$(System.ArtifactsDirectory)/winverify-symbols' -Force | ||||||
| $dllName = 'getfilesiginforedist.dll' | ||||||
| $winverifySymbolsDllPath = Join-Path $winverifySymbolsPath $dllName | ||||||
|
|
||||||
| $context = New-AzStorageContext -StorageAccountName $storageAccountName -UseConnectedAccount | ||||||
|
|
||||||
| Get-AzStorageBlobContent -Container $containerName -Blob $dllName -Destination $winverifySymbolsDllPath -Context $context | ||||||
|
|
||||||
| - pwsh: | | ||||||
| Get-ChildItem -Path '$(System.ArtifactsDirectory)/winverify-symbols' | ||||||
| displayName: Capture winverify-private Artifacts | ||||||
| workingDirectory: '$(repoRoot)' | ||||||
| condition: succeededOrFailed() | ||||||
|
|
||||||
| - task: CodeQL3000Init@0 # Add CodeQL Init task right before your 'Build' step. | ||||||
| displayName: 🔏 CodeQL 3000 Init | ||||||
| condition: eq(variables['CODEQL_ENABLED'], 'true') | ||||||
|
|
@@ -118,23 +89,35 @@ jobs: | |||||
| Remove-Item -Recurse -Force $OutputFolder/ref | ||||||
| } | ||||||
|
|
||||||
| Copy-Item -Path "$OutputFolder\*" -Destination '$(ob_outputDirectory)' -Recurse -Verbose | ||||||
| $Destination = '$(ob_outputDirectory)' | ||||||
| if (-not (Test-Path $Destination)) { | ||||||
| Write-Verbose -Verbose -Message "Creating destination folder '$Destination'" | ||||||
| $null = mkdir $Destination | ||||||
| } | ||||||
|
|
||||||
| Copy-Item -Path "$OutputFolder\*" -Destination $Destination -Recurse -Verbose | ||||||
| workingDirectory: '$(repoRoot)' | ||||||
| displayName: 'Build PowerShell Source' | ||||||
|
|
||||||
| - pwsh: | | ||||||
| # Only key windows runtimes | ||||||
| Get-ChildItem -Path '$(ob_outputDirectory)\runtimes\*' -File -Recurse | Where-Object {$_.FullName -notmatch '.*\/runtimes\/win'} | Foreach-Object { | ||||||
| # Only keep windows runtimes | ||||||
| Write-Verbose -Verbose -Message "Deleting non-win-x64 runtimes ..." | ||||||
|
||||||
| Write-Verbose -Verbose -Message "Deleting non-win-x64 runtimes ..." | |
| Write-Verbose -Verbose -Message "Deleting non-Windows runtimes ..." |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versionNumberis hard-coded to "7.6", which can easily drift from the branch/version this pipeline is running for (and requires manual updates). Prefer omittingversionNumberto use the default build number, or set it based on a branch/version variable appropriate for this release branch.