microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.ci/master-pipeline.yml
82lines · modecode
| 1 | trigger: |
| 2 | - master |
| 3 | - preview |
| 4 | variables: |
| 5 | Codeql.Enabled: true |
| 6 | pr: |
| 7 | - none |
| 8 | resources: |
| 9 | repositories: |
| 10 | - repository: 1ESPipelineTemplates |
| 11 | type: git |
| 12 | name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 13 | ref: refs/tags/release |
| 14 | extends: |
| 15 | template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates |
| 16 | parameters: |
| 17 | pool: |
| 18 | name: VSWebDiag1ESPipelinePool |
| 19 | image: VSWebDiag_1ESImage_Windows |
| 20 | os: windows |
| 21 | customBuildTags: |
| 22 | - ES365AIMigrationTooling |
| 23 | stages: |
| 24 | - stage: stage |
| 25 | jobs: |
| 26 | - job: Linux |
| 27 | pool: |
| 28 | name: VSWebDiag1ESPipelinePool |
| 29 | image: VSWebDiag_1ESImage_Ubuntu |
| 30 | os: linux |
| 31 | timeoutInMinutes: 20 |
| 32 | templateContext: |
| 33 | outputs: |
| 34 | - output: pipelineArtifact |
| 35 | displayName: "Publish artifacts: drop-win" |
| 36 | targetPath: "$(Build.ArtifactStagingDirectory)" |
| 37 | artifactName: "drop-win" |
| 38 | steps: |
| 39 | - checkout: self |
| 40 | clean: true |
| 41 | - template: /.ci/common-validation.yml@self |
| 42 | - task: ComponentGovernanceComponentDetection@0 |
| 43 | displayName: "Component Detection" |
| 44 | inputs: |
| 45 | ignoreDirectories: ".vscode-test" |
| 46 | - task: notice@0 |
| 47 | displayName: "NOTICE File Generator" |
| 48 | inputs: |
| 49 | outputfile: "ThirdPartyNotices_Generated.txt" |
| 50 | additionaldata: release/AdditionalAttributions.txt |
| 51 | - bash: gulp release |
| 52 | displayName: "gulp release" |
| 53 | - bash: 'node -e "console.log(require(''./package.json'').version)" -> version.txt' |
| 54 | displayName: "Strip version from package.json and save to version.txt" |
| 55 | - task: CopyFiles@2 |
| 56 | displayName: "Copy Files to: $(Build.ArtifactStagingDirectory)" |
| 57 | inputs: |
| 58 | Contents: | |
| 59 | *.vsix |
| 60 | CHANGELOG.md |
| 61 | version.txt |
| 62 | TargetFolder: "$(Build.ArtifactStagingDirectory)" |
| 63 | - job: Windows |
| 64 | pool: |
| 65 | name: VSWebDiag1ESPipelinePool |
| 66 | image: VSWebDiag_1ESImage_Windows |
| 67 | os: windows |
| 68 | timeoutInMinutes: 20 |
| 69 | steps: |
| 70 | - checkout: self |
| 71 | clean: true |
| 72 | - template: /.ci/common-validation.yml@self |
| 73 | - job: macOS |
| 74 | pool: |
| 75 | name: Azure Pipelines |
| 76 | image: macos-latest |
| 77 | os: macOS |
| 78 | timeoutInMinutes: 20 |
| 79 | steps: |
| 80 | - checkout: self |
| 81 | clean: true |
| 82 | - template: /.ci/common-validation.yml@self |
| 83 | |