-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate java pipelines to 1es pipeline templates (#39243)
* Migrate java pipelines to 1es pipeline templates Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com> Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> * PR, main fixes * Disable spotbugs in 1es sdl * Set storage pool replace * Fix custom live test extends (cosmos, spring, communicatiion) * Fix linux next image value * Set sdl config on public * Add cspell ignore for matrix test config files --------- Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com> Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> (cherry picked from commit 9e789e6)
- Loading branch information
Showing
92 changed files
with
2,622 additions
and
1,852 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<# | ||
.SYNOPSIS | ||
Captures any .hprof files in the build directory and moves them to a staging directory for artifact publishing. | ||
.DESCRIPTION | ||
This script is used to capture any .hprof files in the build directory and move them to a staging directory for | ||
artifact publishing. It also sets a pipeline variable to indicate whether any .hprof files were found. | ||
.PARAMETER StagingDirectory | ||
The directory where the .hprof files will be moved to. | ||
.PARAMETER OomArtifactName | ||
The name of the artifact to be created. | ||
#> | ||
|
||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string]$StagingDirectory, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[string]$OomArtifactName | ||
) | ||
|
||
$hrpofs = Get-ChildItem -Path . -Recurse -Filter *.hprof -File | ||
|
||
if ($hrpofs.Count -gt 0) { | ||
if (-not (Test-Path "$StagingDirectory/troubleshooting")) { | ||
New-Item -ItemType Directory -Path "$StagingDirectory/troubleshooting" | Out-Null | ||
} | ||
Compress-Archive -Path $hrpofs -DestinationPath "$StagingDirectory/troubleshooting/$OomArtifactName.zip" | ||
Write-Host "##vso[task.setvariable variable=HAS_TROUBLESHOOTING]true" | ||
} |
Oops, something went wrong.