-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pipelines - Spring Grove (#1031)
* refactor pipelines to be compatible with 1es templates * add build-in release phase utilizing ESRP task
- Loading branch information
Showing
27 changed files
with
99,022 additions
and
108,098 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- develop | ||
- hotfix/* | ||
- release/* | ||
|
||
pr: | ||
branches: | ||
include: | ||
- develop | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
|
||
extends: | ||
template: /eng/templates/stages/oav.yml |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
# Read the package.json file | ||
$packageJsonPath = "$PSScriptRoot/../../package.json" | ||
$packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json | ||
|
||
# Function to check if a version is non-GA | ||
function Is-NonGA($version) { | ||
return $version -match "-(alpha|beta|rc|pre)" | ||
} | ||
|
||
|
||
$pkgVersion = $packageJson.version | ||
|
||
if (Is-NonGA($pkgVersion)) { | ||
Write-Host "##vso[task.setvariable variable=Tag;]beta" | ||
} | ||
else { | ||
Write-Host "##vso[task.setvariable variable=Tag;]latest" | ||
} | ||
|
File renamed without changes.
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,64 @@ | ||
resources: | ||
repositories: | ||
- repository: 1ESPipelineTemplates | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
- repository: 1ESPipelineTemplatesCanary | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/canary | ||
|
||
parameters: | ||
- name: stages | ||
type: stageList | ||
default: [] | ||
- name: Use1ESOfficial | ||
type: boolean | ||
default: true | ||
- name: oneESTemplateTag | ||
type: string | ||
default: release | ||
|
||
extends: | ||
${{ if and(parameters.Use1ESOfficial, eq(parameters.oneESTemplateTag, 'canary')) }}: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplatesCanary | ||
${{ elseif eq(parameters.oneESTemplateTag, 'canary') }}: | ||
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplatesCanary | ||
${{ elseif and(parameters.Use1ESOfficial, eq(variables['System.TeamProject'], 'internal')) }}: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates | ||
${{ else }}: | ||
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates | ||
parameters: | ||
${{ if eq(parameters.oneESTemplateTag, 'canary') }}: | ||
# Enable 1es template team to verify validation has been run on canary | ||
customBuildTags: | ||
- 1ES.PT.Tag-refs/tags/canary | ||
settings: | ||
skipBuildTagsForGitHubPullRequests: true | ||
sdl: | ||
git: | ||
longpaths: true | ||
submodules: false | ||
sourceRepositoriesToScan: | ||
include: | ||
- repository: self | ||
submodule: false | ||
runInSingleJob: true | ||
sourceAnalysisPool: | ||
name: azsdk-pool-mms-win-2022-general | ||
image: azsdk-pool-mms-win-2022-1espt | ||
os: windows | ||
eslint: | ||
enabled: false | ||
justificationForDisabling: "ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azur 19 e-sdk/internal/_build/results?buildId=3556850" | ||
codeql: | ||
compiled: | ||
enabled: false | ||
justificationForDisabling: "CodeQL times our pipelines out by running for 2+ hours before being force canceled." | ||
psscriptanalyzer: | ||
compiled: true | ||
break: true | ||
policy: M365 | ||
|
||
stages: ${{ parameters.stages }} |
Oops, something went wrong.