From 8fd638c11a2c2360dd90526c0662f4816ca8d7e0 Mon Sep 17 00:00:00 2001 From: sheylatrudo Date: Tue, 30 Jul 2024 16:36:26 -0700 Subject: [PATCH] Add Initial Compliant Pipeline Files (#2870) Add Minimum Required Yaml for OneBranch Co-authored-by: Sheyla Trudo --- .../OneBranch.NonOfficial.CrossPlat.yaml | 28 +++++++++++++++++++ .pipelines/OneBranch.Official.CrossPlat.yaml | 27 ++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .pipelines/OneBranch.NonOfficial.CrossPlat.yaml create mode 100644 .pipelines/OneBranch.Official.CrossPlat.yaml diff --git a/.pipelines/OneBranch.NonOfficial.CrossPlat.yaml b/.pipelines/OneBranch.NonOfficial.CrossPlat.yaml new file mode 100644 index 000000000..35f263ec6 --- /dev/null +++ b/.pipelines/OneBranch.NonOfficial.CrossPlat.yaml @@ -0,0 +1,28 @@ +trigger: none + +variables: + WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest' # for Windows jobs + LinuxContainerImage: 'mcr.microsoft.com/onebranch/cbl-mariner/build:2.0' # for Linux jobs + +resources: + repositories: + - repository: templates + type: git + name: OneBranch.Pipelines/GovernedTemplates + ref: refs/heads/main + +extends: + template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates + parameters: + featureFlags: + WindowsHostVersion: 1ESWindows2022 + stages: + - stage: build + jobs: + - job: main + pool: + type: windows + variables: + ob_outputDirectory: '$(Build.SourcesDirectory)\out' + steps: [] + diff --git a/.pipelines/OneBranch.Official.CrossPlat.yaml b/.pipelines/OneBranch.Official.CrossPlat.yaml new file mode 100644 index 000000000..e67c7df26 --- /dev/null +++ b/.pipelines/OneBranch.Official.CrossPlat.yaml @@ -0,0 +1,27 @@ +trigger: none + +variables: + WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest' # for Windows jobs + LinuxContainerImage: 'mcr.microsoft.com/onebranch/cbl-mariner/build:2.0' # for Linux jobs + +resources: + repositories: + - repository: templates + type: git + name: OneBranch.Pipelines/GovernedTemplates + ref: refs/heads/main + +extends: + template: v2/OneBranch.Official.CrossPlat.yml@templates + parameters: + featureFlags: + WindowsHostVersion: 1ESWindows2022 + stages: + - stage: build + jobs: + - job: main + pool: + type: windows + variables: + ob_outputDirectory: '$(Build.SourcesDirectory)\out' + steps: []