From a276ae2e3d68b7bbe6d8656732636210512e2b78 Mon Sep 17 00:00:00 2001 From: Aleksandr Levochkin <107044793+aleksandrlevochkin@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:00:07 +0200 Subject: [PATCH] Add 1ES template pipeline (#448) * Add 1ES template pipeline * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml --- azure-pipelines.yml | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..becfc613 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,72 @@ +# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool. +# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected. +# This pipeline will be extended to the OneESPT template +# If you are not using the E+D shared hosted pool with windows-2022, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage +# The Task 'PublishBuildArtifacts@1' has been converted to an output named 'Publish Artifact: vsix' in the templateContext section. +trigger: + branches: + include: + - master +variables: +- name: CodeQL.Enabled + value: true +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + sdl: + sourceAnalysisPool: + name: 1ES-ABTT-Shared-Pool + image: abtt-windows-2022 + os: windows + pool: + name: 1ES-ABTT-Shared-Pool + image: abtt-ubuntu-2204 + os: linux + customBuildTags: + - ES365AIMigrationTooling + stages: + - stage: stage + jobs: + - job: Phase_1 + displayName: Agent job 1 + cancelTimeoutInMinutes: 1 + templateContext: + outputs: + - output: pipelineArtifact + displayName: 'Publish Artifact: vsix' + targetPath: '$(build.artifactsdirectory)' + artifactName: vsix + steps: + - checkout: self + clean: true + fetchTags: false + - task: Npm@1 + name: Npm_1 + displayName: npm install + inputs: + command: 'install' + verbose: false + - task: CmdLine@2 + displayName: Build + inputs: + script: node make.js build + - task: CmdLine@2 + displayName: Run Tests + inputs: + script: node make.js test + - task: CmdLine@2 + displayName: Create extension + inputs: + script: node make.js create + - task: CopyFiles@2 + name: CopyFiles_5 + displayName: 'Copy Files to: $(build.artifactsdirectory)' + inputs: + Contents: '*.vsix' + TargetFolder: $(build.artifactsdirectory)