Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Bases Image pipelines to 1ES Template #2352

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 104 additions & 87 deletions vsts/pipelines/PlatformBinaries/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -1,95 +1,10 @@
variables:
- group: Oryx

- group: Oryx
parameters:
- name: destinationStorageAccountName
displayName: Destination Storage Account Name
type: string
default: oryxsdksstaging

stages:
- stage: Build
jobs:
- job: DotNetCore_Bookworm
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'dotnet'
debianFlavor: 'bookworm'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: DotNetCore_Bullseye
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'dotnet'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: DotNetCore_Buster
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'dotnet'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: DotNetCore_Stretch
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'dotnet'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: DotNetCore_Ubuntu
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
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
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesReleaseTemplate.yml
parameters:
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

trigger:
batch: true
branches:
Expand All @@ -100,4 +15,106 @@ trigger:
- /*
include:
- platforms/dotnet
- vsts/PlatformBinaries/dotnetcore.yml
- 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 }}'
164 changes: 90 additions & 74 deletions vsts/pipelines/PlatformBinaries/golang.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,10 @@
variables:
- group: Oryx

- group: Oryx
parameters:
- name: destinationStorageAccountName
displayName: Destination Storage Account Name
type: string
default: oryxsdksstaging

stages:
- stage: Build
jobs:
- job: Golang_Bullseye
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'golang'
debianFlavor: 'bullseye'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: Golang_Buster
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'golang'
debianFlavor: 'buster'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: Golang_Stretch
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
parameters:
platformName: 'golang'
debianFlavor: 'stretch'
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

- job: Golang_Ubuntu
timeoutInMinutes: 250
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesTemplate.yml
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
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
steps:
- template: ../templates/_platformBinariesReleaseTemplate.yml
parameters:
destinationSdkStorageAccountName: '${{ parameters.destinationStorageAccountName }}'

trigger:
batch: true
branches:
Expand All @@ -87,4 +15,92 @@ trigger:
- /*
include:
- platforms/golang
- vsts/PlatformBinaries/golang.yml
- 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 }}'
Loading