Update pipeilnes to use 1ESPT/M365PT templates (#308)
* Updates pipeline build to new M365 template * adds some new lines between major sections of build yml and adds newline at end of file for prettier * update build machine pool name * Add settings flag to skip tagging github PRs * Fix formatting isue in pipelines yml file * Fix formatting through prettier * Add code comments * Update true flag to not use quotes * Enable debug logs * Move settings to be at same level as sdl * Remove debug flags --------- Co-authored-by: seanimam <105244057+seanimam@users.noreply.github.com>
This commit is contained in:
Родитель
91e6b34c0d
Коммит
8df052e23b
|
@ -7,39 +7,71 @@ pr:
|
|||
- main
|
||||
- main-azure
|
||||
|
||||
pool: "Small"
|
||||
resources:
|
||||
repositories:
|
||||
- repository: m365Pipelines
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/M365GPT
|
||||
ref: refs/tags/release
|
||||
|
||||
steps:
|
||||
- task: ComponentGovernanceComponentDetection@0
|
||||
inputs:
|
||||
scanType: "Register"
|
||||
verbosity: "Verbose"
|
||||
alertWarningLevel: "High"
|
||||
- task: UseNode@1
|
||||
displayName: Use Node 18.x
|
||||
inputs:
|
||||
version: 18.x
|
||||
- task: Npm@1
|
||||
displayName: Install
|
||||
inputs:
|
||||
command: "custom"
|
||||
customCommand: "ci"
|
||||
- task: CmdLine@2
|
||||
displayName: Build
|
||||
inputs:
|
||||
script: "npm run build"
|
||||
- task: CmdLine@2
|
||||
displayName: Lint
|
||||
inputs:
|
||||
script: "npm run lint"
|
||||
- task: CmdLine@2
|
||||
displayName: Test
|
||||
inputs:
|
||||
script: "npm run ci:test"
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish Test Results
|
||||
inputs:
|
||||
testResultsFormat: "JUnit"
|
||||
testResultsFiles: "**/*junit-report.xml"
|
||||
searchFolder: "$(System.DefaultWorkingDirectory)"
|
||||
condition: succeededOrFailed()
|
||||
extends:
|
||||
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
|
||||
parameters:
|
||||
pool:
|
||||
name: Small-1ES
|
||||
os: linux
|
||||
sdl:
|
||||
arrow:
|
||||
# This is the service connection for the Arrow Service Connection in FluidFramework Azure DevOps organization
|
||||
# Currently we want to use different names for internal and public builds for Arrow Service Connection
|
||||
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
||||
serviceConnection: Arrow_FluidFramework_internal
|
||||
${{ else }}:
|
||||
serviceConnection: Arrow_FluidFramework_public
|
||||
sourceAnalysisPool:
|
||||
name: Azure-Pipelines-1ESPT-ExDShared
|
||||
image: windows-2022
|
||||
os: windows
|
||||
# Skip tagging if Github PR coming from a fork
|
||||
settings:
|
||||
skipBuildTagsForGitHubPullRequests: true
|
||||
customBuildTags:
|
||||
- ES365AIMigrationTooling
|
||||
stages:
|
||||
- stage: stage
|
||||
jobs:
|
||||
- job: job
|
||||
steps:
|
||||
- task: ComponentGovernanceComponentDetection@0
|
||||
inputs:
|
||||
scanType: "Register"
|
||||
verbosity: "Verbose"
|
||||
alertWarningLevel: "High"
|
||||
- task: UseNode@1
|
||||
displayName: Use Node 18.x
|
||||
inputs:
|
||||
version: 18.x
|
||||
- task: Npm@1
|
||||
displayName: Install
|
||||
inputs:
|
||||
command: "custom"
|
||||
customCommand: "ci"
|
||||
- task: CmdLine@2
|
||||
displayName: Build
|
||||
inputs:
|
||||
script: "npm run build"
|
||||
- task: CmdLine@2
|
||||
displayName: Lint
|
||||
inputs:
|
||||
script: "npm run lint"
|
||||
- task: CmdLine@2
|
||||
displayName: Test
|
||||
inputs:
|
||||
script: "npm run ci:test"
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish Test Results
|
||||
inputs:
|
||||
testResultsFormat: "JUnit"
|
||||
testResultsFiles: "**/*junit-report.xml"
|
||||
searchFolder: "$(System.DefaultWorkingDirectory)"
|
||||
condition: succeededOrFailed()
|
||||
|
|
Загрузка…
Ссылка в новой задаче