Skip to content

Commit

Permalink
Re-enable localization handoff as yaml pipeline (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jevansaks authored Feb 15, 2019
1 parent c2838fb commit 0501684
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
24 changes: 24 additions & 0 deletions build/MUX-LocalizationHandoff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
jobs:
- job: LocalizationHandoff
pool:
name: Package ES Custom Demands Lab A
demands:
- ClientAlias -equals depcontrols2

steps:
- task: PkgESSetupBuild@10
displayName: 'XESSetupBuild'
inputs:
productName: dep.controls
branchVersion: true
nugetVer: true

- template: AzurePipelinesTemplates\MUX-PopulateBuildDateAndRevision-Steps.yml

- task: CmdLine@1
displayName: 'Run Loc Workflow'
inputs:
filename: '$(Build.SourcesDirectory)\tools\VSTSRunLocWorkflow.cmd'


11 changes: 8 additions & 3 deletions tools/VSTSRunLocWorkflow.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
setlocal

@if not defined XES_NUGETPACKVERSIONNOBETA (
echo ERROR: Expecting XES_NUGETPACKVERSIONNOBETA to be set
@if not defined BUILDDATE (
echo ERROR: Expecting BUILDDATE to be set
exit /B 1
)

call %~dp0\..\build\localization\RunLocWorkflow.cmd Daily-%XES_NUGETPACKVERSIONNOBETA%
@if not defined BUILDREVISION (
echo ERROR: Expecting BUILDREVISION to be set
exit /B 1
)

call %~dp0\..\build\localization\RunLocWorkflow.cmd Daily-%BUILDDATE%.%BUILDREVISION%

REM Undo any changes that were made since we are just doing handoff and the process will automatically hand back.
pushd %~dp0\..
Expand Down

0 comments on commit 0501684

Please sign in to comment.