Skip to content

Commit c92ae5e

Browse files
authored
[ci] Move OneLocBuild task to scheduled pipeline (#7679)
The OneLocBuild system relies on a fully successful (green) build to behave correctly. This task has been moved into a separate pipeline to avoid the intermittent failures we see on the Xamarin.Android pipeline.
1 parent d78d786 commit c92ae5e

File tree

2 files changed

+59
-45
lines changed

2 files changed

+59
-45
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,48 +1900,3 @@ stages:
19001900
CredScan: true
19011901
PoliCheck: true
19021902
condition: succeededOrFailed()
1903-
1904-
# Check - "Xamarin.Android (Tenets OneLocBuild)"
1905-
- job: OneLocBuild
1906-
displayName: OneLocBuild
1907-
condition: and(eq(variables['MicroBuildSignType'], 'Real'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
1908-
pool: VSEngSS-MicroBuild2022-1ES
1909-
timeoutInMinutes: 30
1910-
variables:
1911-
- group: Xamarin-Secrets
1912-
workspace:
1913-
clean: all
1914-
steps:
1915-
- checkout: self
1916-
clean: true
1917-
1918-
- task: PowerShell@2
1919-
displayName: Update LocProject.json
1920-
inputs:
1921-
targetType: filePath
1922-
filePath: $(Build.SourcesDirectory)\Localize\update-locproject.ps1
1923-
arguments: -SourcesDirectory "$(Build.SourcesDirectory)" -LocProjectPath "$(Build.SourcesDirectory)\Localize\LocProject.json"
1924-
1925-
- task: OneLocBuild@2
1926-
displayName: OneLocBuild
1927-
env:
1928-
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
1929-
inputs:
1930-
locProj: Localize/LocProject.json
1931-
outDir: $(Build.StagingDirectory)
1932-
packageSourceAuth: patAuth
1933-
patVariable: $(OneLocBuild--PAT)
1934-
isCreatePrSelected: true
1935-
repoType: gitHub
1936-
gitHubPatVariable: $(github--pat--vs-mobiletools-engineering-service2)
1937-
prSourceBranchPrefix: locpr
1938-
isShouldReusePrSelected: true
1939-
isAutoCompletePrSelected: false
1940-
isUseLfLineEndingsSelected: true
1941-
1942-
- task: PublishBuildArtifacts@1
1943-
displayName: Publish Localization Files
1944-
inputs:
1945-
PathtoPublish: $(Build.StagingDirectory)/loc
1946-
ArtifactName: Loc
1947-
condition: succeededOrFailed()
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Xamarin.Android OneLocBuild
2+
3+
name: $(Build.SourceBranchName)-$(Build.SourceVersion)-$(Rev:r)
4+
5+
trigger: none
6+
7+
pr: none
8+
9+
schedules:
10+
- cron: "0 6 * * *"
11+
displayName: Run daily at 6:00 UTC
12+
branches:
13+
include:
14+
- main
15+
16+
jobs:
17+
- job: OneLocBuild
18+
displayName: OneLocBuild
19+
condition: and(eq(variables['System.TeamProject'], 'DevDiv'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
20+
pool: VSEngSS-MicroBuild2022-1ES
21+
timeoutInMinutes: 30
22+
variables:
23+
- group: Xamarin-Secrets
24+
workspace:
25+
clean: all
26+
steps:
27+
- checkout: self
28+
clean: true
29+
30+
- task: PowerShell@2
31+
displayName: Update LocProject.json
32+
inputs:
33+
targetType: filePath
34+
filePath: $(Build.SourcesDirectory)\Localize\update-locproject.ps1
35+
arguments: -SourcesDirectory "$(Build.SourcesDirectory)" -LocProjectPath "$(Build.SourcesDirectory)\Localize\LocProject.json"
36+
37+
- task: OneLocBuild@2
38+
displayName: OneLocBuild
39+
env:
40+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
41+
inputs:
42+
locProj: Localize/LocProject.json
43+
outDir: $(Build.StagingDirectory)
44+
packageSourceAuth: patAuth
45+
patVariable: $(OneLocBuild--PAT)
46+
isCreatePrSelected: true
47+
repoType: gitHub
48+
gitHubPatVariable: $(github--pat--vs-mobiletools-engineering-service2)
49+
prSourceBranchPrefix: locpr
50+
isShouldReusePrSelected: true
51+
isAutoCompletePrSelected: false
52+
isUseLfLineEndingsSelected: true
53+
54+
- task: PublishBuildArtifacts@1
55+
displayName: Publish Localization Files
56+
inputs:
57+
PathtoPublish: $(Build.StagingDirectory)/loc
58+
ArtifactName: Loc
59+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)