@@ -42,59 +42,54 @@ extends:
42
42
- stage : LocalizationStage
43
43
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
44
44
jobs :
45
- - job : test
46
- steps :
47
- - pwsh : echo "Hello 1ES"
48
-
49
- # jobs:
50
- # - job: Localization
51
- # templateContext:
52
- # outputs:
53
- # - output: pipelineArtifact
54
- # displayName: LOC
55
- # targetPath: '$(Build.SourcesDirectory)/loc'
56
- # condition: ${{ parameters.publishLocalizationFile }}
57
- # artifactName: loc
58
- # - output: pipelineArtifact
59
- # displayName: l10n
60
- # targetPath: '$(Build.SourcesDirectory)/l10n'
61
- # condition: ${{ parameters.publishLocalizationFile }}
62
- # artifactName: l10n
63
- # steps:
64
- # - task: NodeTool@0
65
- # displayName: 'Install Node.js 18.x'
66
- # inputs:
67
- # # Octokit client needs 18.x to have 'fetch' function.
68
- # versionSpec: '18.x'
69
- # - checkout: self
70
- # clean: true
71
- # submodules: true
72
- # fetchTags: false
73
- # fetchDepth: 0
74
- # - pwsh: |
75
- # npm install
76
- # npm install -g gulp
77
- # displayName: 'Install tools'
78
- # - pwsh: npm run compile
79
- # displayName: 'Compile'
80
- # - pwsh: npm run l10nDevGenerateLocalizationBundle
81
- # displayName: 'Generate bundle.l10.json'
82
- # - pwsh: npm run l10nDevGenerateXlf
83
- # displayName: 'Generate xlf files from bundle.10n.json'
84
- # - task: OneLocBuild@2
85
- # env:
86
- # SYSTEM_ACCESSTOKEN: $(System.AccessToken)
87
- # inputs:
88
- # locProj: loc/LocProject.json
89
- # outDir: '$(Build.SourcesDirectory)/loc'
90
- # isCreatePrSelected: false
91
- # patVariable: $(dn-bot-ceapex-package-r)
92
- # packageSourceAuth: patAuth
93
- # lclSource: lclFilesfromPackage
94
- # LclPackageId: 'LCL-JUNO-PROD-VSCODECS'
95
- # - pwsh: npm run l10nDevImportXlf
96
- # displayName: 'Import xlf to json.'
97
- # - pwsh: gulp 'publish localization content' --userName dotnet-bot --email [email protected] --commitSha $(Build.SourceVersion) --targetRemoteRepo vscode-csharp --baseBranch 'main'
98
- # displayName: 'Create PR in GitHub.'
99
- # env:
100
- # GitHubPAT: $(BotAccount-dotnet-bot-repo-PAT)
45
+ - job : Localization
46
+ templateContext :
47
+ outputs :
48
+ - output : pipelineArtifact
49
+ displayName : LOC
50
+ targetPath : ' $(Build.SourcesDirectory)/loc'
51
+ condition : ${{ parameters.publishLocalizationFile }}
52
+ artifactName : loc
53
+ - output : pipelineArtifact
54
+ displayName : l10n
55
+ targetPath : ' $(Build.SourcesDirectory)/l10n'
56
+ condition : ${{ parameters.publishLocalizationFile }}
57
+ artifactName : l10n
58
+ steps :
59
+ - task : NodeTool@0
60
+ displayName : ' Install Node.js 18.x'
61
+ inputs :
62
+ # Octokit client needs 18.x to have 'fetch' function.
63
+ versionSpec : ' 18.x'
64
+ - checkout : self
65
+ clean : true
66
+ submodules : true
67
+ fetchTags : false
68
+ fetchDepth : 0
69
+ - pwsh : |
70
+ npm install
71
+ npm install -g gulp
72
+ displayName: 'Install tools'
73
+ - pwsh : npm run compile
74
+ displayName : ' Compile'
75
+ - pwsh : npm run l10nDevGenerateLocalizationBundle
76
+ displayName : ' Generate bundle.l10.json'
77
+ - pwsh : npm run l10nDevGenerateXlf
78
+ displayName : ' Generate xlf files from bundle.10n.json'
79
+ - task : OneLocBuild@2
80
+ env :
81
+ SYSTEM_ACCESSTOKEN : $(System.AccessToken)
82
+ inputs :
83
+ locProj : loc/LocProject.json
84
+ outDir : ' $(Build.SourcesDirectory)/loc'
85
+ isCreatePrSelected : false
86
+ patVariable : $(dn-bot-ceapex-package-r)
87
+ packageSourceAuth : patAuth
88
+ lclSource : lclFilesfromPackage
89
+ LclPackageId : ' LCL-JUNO-PROD-VSCODECS'
90
+ - pwsh : npm run l10nDevImportXlf
91
+ displayName : ' Import xlf to json.'
92
+ -
pwsh :
gulp 'publish localization content' --userName dotnet-bot --email [email protected] --commitSha $(Build.SourceVersion) --targetRemoteRepo vscode-csharp --baseBranch 'main'
93
+ displayName : ' Create PR in GitHub.'
94
+ env :
95
+ GitHubPAT : $(BotAccount-dotnet-bot-repo-PAT)
0 commit comments