Skip to content

Commit

Permalink
Go mgmt auto release -> 1es-templates (#22616)
Browse files Browse the repository at this point in the history
* ensure this mgmt auto release build works just fine
  • Loading branch information
scbedd authored Mar 19, 2024
1 parent b56179f commit 74feca1
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 26 deletions.
55 changes: 29 additions & 26 deletions eng/pipelines/mgmt-auto-release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
trigger: none

pr: none

schedules:
- cron: "0 1 * * *"
displayName: Daily release
branches:
include:
- main
always: true
extends:
template: /eng/pipelines/templates/stages/1es-redirect.yml
parameters:
stages:
- stage:
variables:
- template: /eng/pipelines/templates/variables/image.yml
jobs:
- job:

pool:
image: $(LINUXNEXTVMIMAGE)
name: $(LINUXNEXTPOOL)
os: linux


stages:
- stage:
jobs:
- job:
displayName: Go Auto Release
steps:
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'install -g autorest@latest'
displayName: Go Auto Release
steps:
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'install -g autorest@latest'

- task: GoTool@0
inputs:
version: '1.22.0'
- task: GoTool@0
inputs:
version: '1.22.0'

- task: ShellScript@2
inputs:
scriptPath: 'eng/scripts/mgmt-auto-release.sh'
cwd: '$(System.DefaultWorkingDirectory)'
args: '$(azuresdk-github-pat)'
- task: ShellScript@2
inputs:
scriptPath: 'eng/scripts/mgmt-auto-release.sh'
cwd: '$(System.DefaultWorkingDirectory)'
args: '$(azuresdk-github-pat)'
46 changes: 46 additions & 0 deletions eng/pipelines/templates/stages/1es-redirect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: azure-sdk-build-tools
type: git
name: internal/azure-sdk-build-tools
ref: refs/tags/azure-sdk-build-tools_20230829.1

parameters:
- name: stages
type: stageList
default: []
- name: Use1ESOfficial
type: boolean
default: true

extends:
${{ if and(parameters.Use1ESOfficial, eq(variables['System.TeamProject'], 'internal')) }}:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
${{ else }}:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
settings:
skipBuildTagsForGitHubPullRequests: true
sdl:
sourceAnalysisPool:
name: azsdk-pool-mms-win-2022-general
image: azsdk-pool-mms-win-2022-1espt
os: windows
sourceRepositoriesToScan:
exclude:
- repository: azure-sdk-build-tools
credscan:
suppressionsFile: '$(Build.SourcesDirectory)/eng/CredScanSuppression.json'
toolVersion: '2.3.12.23'
eslint:
enabled: false
justificationForDisabling: "ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3556850"
psscriptanalyzer:
compiled: true
break: true
policy: M365
stages: ${{ parameters.stages }}
2 changes: 2 additions & 0 deletions eng/pipelines/templates/variables/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
variables:
- name: LINUXPOOL
value: azsdk-pool-mms-ubuntu-2004-general
- name: LINUXNEXTPOOL
value: azsdk-pool-mms-ubuntu-2204-general
- name: WINDOWSPOOL
value: azsdk-pool-mms-win-2022-general
- name: MACPOOL
Expand Down

0 comments on commit 74feca1

Please sign in to comment.