Skip to content

Commit 56b61f1

Browse files
authored
[Localization] Add OneLocBuild job (#175)
Context: https://aka.ms/OneLocBuild A new pipeline has been added in the DevDiv project which will run the `OneLocBuild@2` task on every commit to main. This task produces files needed by the localization team. For more details on this process, see the [OneLocBuild documentation][0] Onboarding for this repo is still pending, and a workflow for the "handback" of localized files will need to be established in a future PR once onboarding is complete. The new pipeline that runs the OneLocBuild task can be found at <https://devdiv.visualstudio.com/DevDiv/_build?definitionId=16846>. [0]: https://aka.ms/OneLocBuild
1 parent 14076a6 commit 56b61f1

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

Localize/LocProject.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"Projects": [
3+
{
4+
"LanguageSet": "VS_Main_Languages",
5+
"LocItems": [
6+
{
7+
"CopyOption": "LangIDOnName",
8+
"SourceFile": ".\\src\\Microsoft.Android.Build.BaseTasks\\Properties\\Resources.resx",
9+
"OutputPath": ".\\src\\Microsoft.Android.Build.BaseTasks\\Properties"
10+
},
11+
{
12+
"CopyOption": "LangIDOnName",
13+
"SourceFile": ".\\src\\Xamarin.Android.Tools.AndroidSdk\\Properties\\Resources.resx",
14+
"OutputPath": ".\\src\\Xamarin.Android.Tools.AndroidSdk\\Properties"
15+
}
16+
]
17+
}
18+
]
19+
}

Localize/onelocbuild.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# xamarin-android-tools - OneLocBuild
2+
3+
name: $(Build.SourceBranchName)-$(Build.SourceVersion)-$(Rev:r)
4+
5+
trigger:
6+
- main
7+
8+
pr: none
9+
10+
jobs:
11+
- job: OneLocBuild
12+
displayName: OneLocBuild
13+
condition: and(eq(variables['System.TeamProject'], 'DevDiv'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
14+
pool: VSEngSS-MicroBuild2022-1ES
15+
timeoutInMinutes: 30
16+
variables:
17+
- group: Xamarin-Secrets
18+
workspace:
19+
clean: all
20+
steps:
21+
- checkout: self
22+
clean: true
23+
24+
- task: OneLocBuild@2
25+
displayName: OneLocBuild
26+
env:
27+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
28+
inputs:
29+
locProj: Localize/LocProject.json
30+
outDir: $(Build.StagingDirectory)
31+
packageSourceAuth: patAuth
32+
patVariable: $(OneLocBuild--PAT)
33+
isCreatePrSelected: true
34+
repoType: gitHub
35+
gitHubPatVariable: $(github--pat--vs-mobiletools-engineering-service2)
36+
prSourceBranchPrefix: locpr
37+
isShouldReusePrSelected: true
38+
isAutoCompletePrSelected: false
39+
isUseLfLineEndingsSelected: true
40+
41+
- task: PublishBuildArtifacts@1
42+
displayName: Publish Localization Files
43+
inputs:
44+
PathtoPublish: $(Build.StagingDirectory)/loc
45+
ArtifactName: Loc
46+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)