Skip to content

Commit

Permalink
Moved 1ES compliant pipeline templates to a separate folder temporari…
Browse files Browse the repository at this point in the history
…ly (#2397)

* Convert Bases Image pipelines to 1ES Template

* Update node

* Update node

* Remove empty pipelineArtifact

* Convert Oryx-PlatformBinary-Php

* Convert more PlatformBinaries

* Add python base image

* Fix merge conflicts

* Temporarily moved 1ES pipeline templates to separate folder and kept old templates

---------

Co-authored-by: Dan Vouaux <[email protected]>
Co-authored-by: daniv-msft <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 350bad7 commit 173e2d6
Show file tree
Hide file tree
Showing 46 changed files with 3,891 additions and 0 deletions.
120 changes: 120 additions & 0 deletions vsts/pipelines/1ESPipelines/PlatformBinaries/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
variables:
- group: Oryx
parameters:
- name: destinationStorageAccountName
displayName: Destination Storage Account Name
type: string
default: oryxsdksstaging
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- /*
include:
- platforms/dotnet
- vsts/PlatformBinaries/dotnetcore.yml
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesUbuntu20.04compliant
os: linux
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Build
jobs:
- job: DotNetCore_Bookworm
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'dotnet'
debianFlavor: 'bookworm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: DotNetCore_Bullseye
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'dotnet'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: DotNetCore_Buster
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'dotnet'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: DotNetCore_Stretch
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'dotnet'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: DotNetCore_Ubuntu
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'dotnet'
debianFlavor: 'focal-scm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- stage: Release
dependsOn: Build
jobs:
- job: Publish_Platform_Binaries
timeoutInMinutes: 250
displayName: Publish to Azure Blob Storage
steps:
- template: /vsts/pipelines/templates/_platformBinariesReleaseTemplate.yml@self
parameters:
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
106 changes: 106 additions & 0 deletions vsts/pipelines/1ESPipelines/PlatformBinaries/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
variables:
- group: Oryx
parameters:
- name: destinationStorageAccountName
displayName: Destination Storage Account Name
type: string
default: oryxsdksstaging
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- /*
include:
- platforms/golang
- vsts/PlatformBinaries/golang.yml
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesUbuntu20.04compliant
os: linux
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Build
jobs:
- job: Golang_Bullseye
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'golang'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Golang_Buster
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'golang'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Golang_Stretch
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'golang'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Golang_Ubuntu
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'golang'
debianFlavor: 'focal-scm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- stage: Release
dependsOn: Build
jobs:
- job: Publish_Platform_Binaries
timeoutInMinutes: 250
displayName: Publish to Azure Blob Storage
steps:
- template: /vsts/pipelines/templates/_platformBinariesReleaseTemplate.yml@self
parameters:
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
162 changes: 162 additions & 0 deletions vsts/pipelines/1ESPipelines/PlatformBinaries/java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
variables:
- group: Oryx
parameters:
- name: destinationStorageAccountName
displayName: Destination Storage Account Name
type: string
default: oryxsdksstaging
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- /*
include:
- platforms/java
- vsts/PlatformBinaries/java.yml
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesUbuntu20.04compliant
os: linux
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Build
jobs:
- job: Java_Bullseye
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'java'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Java_Buster
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'java'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Java_Stretch
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'java'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Java_Ubuntu
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'java'
debianFlavor: 'focal-scm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Maven_Bullseye
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'maven'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Maven_Buster
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'maven'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Maven_Stretch
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'maven'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- job: Maven_Ubuntu
timeoutInMinutes: 250
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish build artifacts'
condition: true
targetPath: $(Build.ArtifactStagingDirectory)
steps:
- template: /vsts/pipelines/templates/_platformBinariesTemplate.yml@self
parameters:
platformName: 'maven'
debianFlavor: 'focal-scm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
- stage: Release
dependsOn: Build
jobs:
- job: Publish_Platform_Binaries
timeoutInMinutes: 250
displayName: Publish to Azure Blob Storage
steps:
- template: /vsts/pipelines/templates/_platformBinariesReleaseTemplate.yml@self
parameters:
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'
Loading

0 comments on commit 173e2d6

Please sign in to comment.