Skip to content

Commit

Permalink
Create pipeline for 1ES
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft committed Jan 31, 2024
1 parent ac0d4e9 commit 674bba9
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .azure-pipelines/1esmain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Trigger the build whenever `main` or `rel/*` is updated
trigger:
- main
- rel/*

pr: none # Disable PR trigger

# Scheduled nightly build
schedules:
- cron: "0 0 * * *"
displayName: Nightly scheduled build
always: false # Don't rebuild if there haven't been changes
branches:
include:
- main

# Grab the base templates from https://github.com/microsoft/vscode-azuretools/tree/main/azure-pipelines and 1ES
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-azuretools
ref: main
endpoint: GitHub
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

# Use those templates
extends:
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
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"

0 comments on commit 674bba9

Please sign in to comment.