|
| 1 | +variables: |
| 2 | + - group: InfoSec-SecurityResults |
| 3 | + - name: products |
| 4 | + value: 6eff390d-80c0-4456-81b6-6abafa71e768 |
| 5 | + |
| 6 | +trigger: |
| 7 | + branches: |
| 8 | + include: |
| 9 | + - 'main' |
| 10 | + - 'release/*' |
| 11 | + |
| 12 | +resources: |
| 13 | + repositories: |
| 14 | + - repository: OfficePipelineTemplates |
| 15 | + type: git |
| 16 | + name: 1ESPipelineTemplates/OfficePipelineTemplates |
| 17 | + ref: refs/tags/release |
| 18 | + |
| 19 | +extends: |
| 20 | + template: v1/Office.Official.PipelineTemplate.yml@OfficePipelineTemplates |
| 21 | + parameters: |
| 22 | + pool: |
| 23 | + name: Azure-Pipelines-1ESPT-ExDShared |
| 24 | + image: windows-latest |
| 25 | + os: windows |
| 26 | + sdl: |
| 27 | + eslint: |
| 28 | + configuration: 'required' |
| 29 | + parser: '@typescript-eslint/parser' |
| 30 | + parserOptions: 'ecmaFeatures:{jsx:true}\necmaVersion:12\nsourceType:module\nproject:$(Build.SourcesDirectory)/tsconfig.common.json' |
| 31 | + enableExclusions: true |
| 32 | + exclusionPatterns": "*.d.ts\n*.spec.js\n*.spec.jsx\n*.spec.ts\n*.spec.tsx\n*.test.ts\n*.test.tsx" |
| 33 | + customEnvironments: true |
| 34 | + environmentsBrowser: true |
| 35 | + environmentsNode: true |
| 36 | + environmentsCommonJs: true |
| 37 | + environmentsSharedNodeBrowser: false |
| 38 | + environmentsEs6: false |
| 39 | + environmentsEs2017: false |
| 40 | + environmentsEs2020: true |
| 41 | + environmentsJest: false |
| 42 | + codeql: |
| 43 | + compiled: |
| 44 | + enabled: false |
| 45 | + justificationForDisabling: 'CodeQL has some known issues with arm64 macos. Disabling auto-injection and using manual task instead' |
| 46 | + customBuildTags: |
| 47 | + - ES365AIMigrationTooling |
| 48 | + stages: |
| 49 | + - stage: __default |
| 50 | + jobs: |
| 51 | + - job: Security |
| 52 | + displayName: 'Security Tasks' |
| 53 | + steps: |
| 54 | + - template: tools/yaml-templates/security.yml@self |
| 55 | + |
| 56 | + - job: Build |
| 57 | + displayName: 'Build Test Publish' |
| 58 | + steps: |
| 59 | + - template: tools/yaml-templates/build-test-publish.yml@self |
| 60 | + |
| 61 | + templateContext: |
| 62 | + outputs: |
| 63 | + - output: pipelineArtifact |
| 64 | + displayName: 'Publish bundle analysis' |
| 65 | + condition: and( in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'), eq(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.TargetBranch'], 'main')) |
| 66 | + targetPath: './common/temp/bundleAnalysis' |
| 67 | + artifactName: '$(bundleArtifactName)' |
| 68 | + |
| 69 | + - output: pipelineArtifact |
| 70 | + displayName: 'Publish Test app artifacts' |
| 71 | + targetPath: '$(Build.ArtifactStagingDirectory)\teams-test-app\$(Build.BuildId).zip' |
| 72 | + artifactName: 'teams-test-app' |
| 73 | + sbomBuildDropPath: '$(Build.ArtifactStagingDirectory)\teams-test-app' |
| 74 | + sbomPackageName: 'teamstestappArtifact' |
| 75 | + |
| 76 | + - output: pipelineArtifact |
| 77 | + displayName: 'Publish CDN feed to build Artifacts' |
| 78 | + targetPath: '$(Build.ArtifactStagingDirectory)\CDNFeed' |
| 79 | + artifactName: 'CDNFeed' |
| 80 | + |
| 81 | + - output: pipelineArtifact |
| 82 | + displayName: 'Publish validDomains to Build Artifacts' |
| 83 | + targetPath: '$(Build.ArtifactStagingDirectory)\validDomains' |
| 84 | + artifactName: 'validDomains' |
| 85 | + |
| 86 | + - output: pipelineArtifact |
| 87 | + displayName: 'Publish NPM feed to Build Artifacts' |
| 88 | + targetPath: '$(Build.ArtifactStagingDirectory)\NPMFeed' |
| 89 | + artifactName: 'NPMFeed' |
| 90 | + |
| 91 | + - output: pipelineArtifact |
| 92 | + displayName: 'Publish Powershell Scripts to Build Artifacts' |
| 93 | + targetPath: '$(Build.ArtifactStagingDirectory)\scripts' |
| 94 | + artifactName: 'scripts' |
0 commit comments