Skip to content

Commit 74feca1

Browse files
authored
Go mgmt auto release -> 1es-templates (#22616)
* ensure this mgmt auto release build works just fine
1 parent b56179f commit 74feca1

File tree

3 files changed

+77
-26
lines changed

3 files changed

+77
-26
lines changed
Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
trigger: none
2-
32
pr: none
43

5-
schedules:
6-
- cron: "0 1 * * *"
7-
displayName: Daily release
8-
branches:
9-
include:
10-
- main
11-
always: true
4+
extends:
5+
template: /eng/pipelines/templates/stages/1es-redirect.yml
6+
parameters:
7+
stages:
8+
- stage:
9+
variables:
10+
- template: /eng/pipelines/templates/variables/image.yml
11+
jobs:
12+
- job:
13+
14+
pool:
15+
image: $(LINUXNEXTVMIMAGE)
16+
name: $(LINUXNEXTPOOL)
17+
os: linux
18+
1219

13-
stages:
14-
- stage:
15-
jobs:
16-
- job:
17-
displayName: Go Auto Release
18-
steps:
19-
- task: Npm@1
20-
inputs:
21-
command: 'custom'
22-
customCommand: 'install -g autorest@latest'
20+
displayName: Go Auto Release
21+
steps:
22+
- task: Npm@1
23+
inputs:
24+
command: 'custom'
25+
customCommand: 'install -g autorest@latest'
2326

24-
- task: GoTool@0
25-
inputs:
26-
version: '1.22.0'
27+
- task: GoTool@0
28+
inputs:
29+
version: '1.22.0'
2730

28-
- task: ShellScript@2
29-
inputs:
30-
scriptPath: 'eng/scripts/mgmt-auto-release.sh'
31-
cwd: '$(System.DefaultWorkingDirectory)'
32-
args: '$(azuresdk-github-pat)'
31+
- task: ShellScript@2
32+
inputs:
33+
scriptPath: 'eng/scripts/mgmt-auto-release.sh'
34+
cwd: '$(System.DefaultWorkingDirectory)'
35+
args: '$(azuresdk-github-pat)'
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
resources:
2+
repositories:
3+
- repository: 1ESPipelineTemplates
4+
type: git
5+
name: 1ESPipelineTemplates/1ESPipelineTemplates
6+
ref: refs/tags/release
7+
- repository: azure-sdk-build-tools
8+
type: git
9+
name: internal/azure-sdk-build-tools
10+
ref: refs/tags/azure-sdk-build-tools_20230829.1
11+
12+
parameters:
13+
- name: stages
14+
type: stageList
15+
default: []
16+
- name: Use1ESOfficial
17+
type: boolean
18+
default: true
19+
20+
extends:
21+
${{ if and(parameters.Use1ESOfficial, eq(variables['System.TeamProject'], 'internal')) }}:
22+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
23+
${{ else }}:
24+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
25+
parameters:
26+
settings:
27+
skipBuildTagsForGitHubPullRequests: true
28+
sdl:
29+
sourceAnalysisPool:
30+
name: azsdk-pool-mms-win-2022-general
31+
image: azsdk-pool-mms-win-2022-1espt
32+
os: windows
33+
sourceRepositoriesToScan:
34+
exclude:
35+
- repository: azure-sdk-build-tools
36+
credscan:
37+
suppressionsFile: '$(Build.SourcesDirectory)/eng/CredScanSuppression.json'
38+
toolVersion: '2.3.12.23'
39+
eslint:
40+
enabled: false
41+
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"
42+
psscriptanalyzer:
43+
compiled: true
44+
break: true
45+
policy: M365
46+
stages: ${{ parameters.stages }}

eng/pipelines/templates/variables/image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
variables:
44
- name: LINUXPOOL
55
value: azsdk-pool-mms-ubuntu-2004-general
6+
- name: LINUXNEXTPOOL
7+
value: azsdk-pool-mms-ubuntu-2204-general
68
- name: WINDOWSPOOL
79
value: azsdk-pool-mms-win-2022-general
810
- name: MACPOOL

0 commit comments

Comments
 (0)