Skip to content

Commit

Permalink
Finish 1ES pipeline (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored Feb 5, 2024
1 parent 78c8af2 commit af38326
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 80 deletions.
35 changes: 12 additions & 23 deletions .azure-pipelines/1esmain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ trigger:
- main
- rel/*

pr: none # Disable PR trigger
# Disable PR trigger
pr: none

# Scheduled nightly build
schedules:
Expand All @@ -14,38 +15,26 @@ schedules:
include:
- main

# The `resources` specify the location and version of the 1ES PT.
# `resources` specifies the location of templates to pick up, use it to get 1ES and AzExt templates
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: azExtTemplates
type: github
name: microsoft/vscode-azuretools
ref: main
endpoint: GitHub-AzureTools # The service connection to use when accessing this repository

extends:
# The pipeline extends the 1ES PT which will inject different SDL and compliance tasks.
# For non-production pipelines, use "Unofficial" as defined below.
# For productions pipelines, use "Official".
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
# Update the pool with your team's 1ES hosted pool.
pool:
name: Azure Pipelines # Name of your hosted pool
image: windows-latest # Name of the image in your pool. If not specified, first image of the pool is used
name: VSEngSS-MicroBuild2022-1ES # Name of your hosted pool
image: server2022-microbuildVS2022-1es # Name of the image in your pool. If not specified, first image of the pool is used
os: windows # OS of the image. Allowed values: windows, linux, macOS

stages:
- stage: Stage
jobs:
- job: HostJob
# If the pipeline publishes artifacts, use `templateContext` to define the artifacts.
# This will enable 1ES PT to run SDL analysis tools on the artifacts and then upload them.
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(System.DefaultWorkingDirectory)/Samples
artifactName: artifactName
# Define the steps that the pipeline will run.
# In most cases, copy and paste the steps from the original pipeline.
steps:
- powershell: echo "Hello World from host"
# Execute stages from the AzExt template
- template: azure-pipelines/1esjobs.yml@azExtTemplates
57 changes: 0 additions & 57 deletions .azure-pipelines/common-build.yml

This file was deleted.

0 comments on commit af38326

Please sign in to comment.