[Build] Update localization handoff pipeline (#359)

Update the localization build so that it sends strings to our internal localization system on a nightly basis and produces a patch file which we can use to check translations back into the repo.
This commit is contained in:
Matt Cooley 2019-03-22 13:59:06 -07:00 committed by GitHub
parent c4361e2bdf
commit e2d6a325e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,32 +15,33 @@ name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
jobs: jobs:
- job: Localize - job: Localize
pool: pool:
name: Package ES Custom Demands Lab A vmImage: vs2017-win2016
demands:
- ClientAlias -equals PKGESUTILAPPS
workspace:
clean: outputs
variables: variables:
skipComponentGovernanceDetection: true skipComponentGovernanceDetection: true
steps: steps:
- checkout: self
clean: true
- task: PkgESSetupBuild@10 - task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@1
displayName: Initialize Package ES displayName: Send resources to Touchdown Build
inputs: inputs:
productName: Calculator teamId: 86
branchVersion: true authId: d3dd8113-65b3-4526-bdca-a00a7d1c37ba
authKey: $(LocServiceKey)
isPreview: false
relativePathRoot: src/Calculator/Resources/en-US/
resourceFilePath: '*.resw'
outputDirectoryRoot: src/Calculator/Resources/
- task: PkgESTouchdownLocService@10 - script: |
displayName: Package ES Touchdown Loc Service cd $(Build.SourcesDirectory)
git add -A
git diff --cached --exit-code
echo '##vso[task.setvariable variable=hasChanges]%errorlevel%'
git diff --cached > $(Build.ArtifactStagingDirectory)\LocalizedStrings.patch
displayName: Check for changes and create patch file
- task: PublishPipelineArtifact@0
displayName: Publish patch file as artifact
condition: eq(variables['hasChanges'], '1')
inputs: inputs:
IsCallToServiceStepSelected: true artifactName: Patch
IsCheckedInFileSelected: true targetPath: $(Build.ArtifactStagingDirectory)
CheckinFilesAtOriginFilePath: true
GitLocPath: Loc/Resources
LocConfigFile: build/config/LocConfigPackageEs.xml
AuthenticationMode: OAuth
ClientApplicationID: d3dd8113-65b3-4526-bdca-a00a7d1c37ba
ApplicationKeyID: $(LocServiceKey)
SendToLoc: true