2021-03-18 13:00:01 +00:00
|
|
|
parameters:
|
|
|
|
# Optional: dependencies of the job
|
|
|
|
dependsOn: ''
|
|
|
|
|
|
|
|
# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
|
2022-01-25 17:37:15 +00:00
|
|
|
pool: ''
|
|
|
|
|
2021-03-18 13:00:01 +00:00
|
|
|
CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
|
|
|
|
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)
|
|
|
|
|
|
|
|
SourcesDirectory: $(Build.SourcesDirectory)
|
|
|
|
CreatePr: true
|
2021-04-15 13:14:27 +00:00
|
|
|
AutoCompletePr: false
|
2021-10-29 12:58:14 +00:00
|
|
|
ReusePr: true
|
2021-05-05 13:06:29 +00:00
|
|
|
UseLfLineEndings: true
|
2021-03-18 13:00:01 +00:00
|
|
|
UseCheckedInLocProjectJson: false
|
2023-01-04 23:26:05 +00:00
|
|
|
SkipLocProjectJsonGeneration: false
|
2021-03-18 13:00:01 +00:00
|
|
|
LanguageSet: VS_Main_Languages
|
|
|
|
LclSource: lclFilesInRepo
|
|
|
|
LclPackageId: ''
|
|
|
|
RepoType: gitHub
|
2021-06-12 12:58:31 +00:00
|
|
|
GitHubOrg: dotnet
|
|
|
|
MirrorRepo: ''
|
|
|
|
MirrorBranch: main
|
2021-04-29 13:14:01 +00:00
|
|
|
condition: ''
|
2022-10-12 12:32:55 +00:00
|
|
|
JobNameSuffix: ''
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-10-12 12:32:55 +00:00
|
|
|
- job: OneLocBuild${{ parameters.JobNameSuffix }}
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
dependsOn: ${{ parameters.dependsOn }}
|
|
|
|
|
2022-10-12 12:32:55 +00:00
|
|
|
displayName: OneLocBuild${{ parameters.JobNameSuffix }}
|
2021-03-18 13:00:01 +00:00
|
|
|
|
2022-10-22 12:27:57 +00:00
|
|
|
variables:
|
|
|
|
- group: OneLocBuildVariables # Contains the CeapexPat and GithubPat
|
|
|
|
- name: _GenerateLocProjectArguments
|
|
|
|
value: -SourcesDirectory ${{ parameters.SourcesDirectory }}
|
|
|
|
-LanguageSet "${{ parameters.LanguageSet }}"
|
|
|
|
-CreateNeutralXlfs
|
|
|
|
- ${{ if eq(parameters.UseCheckedInLocProjectJson, 'true') }}:
|
|
|
|
- name: _GenerateLocProjectArguments
|
|
|
|
value: ${{ variables._GenerateLocProjectArguments }} -UseCheckedInLocProjectJson
|
|
|
|
- template: /eng/common/templates/variables/pool-providers.yml
|
|
|
|
|
2022-01-25 17:37:15 +00:00
|
|
|
${{ if ne(parameters.pool, '') }}:
|
|
|
|
pool: ${{ parameters.pool }}
|
|
|
|
${{ if eq(parameters.pool, '') }}:
|
|
|
|
pool:
|
|
|
|
# We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
|
|
|
|
name: VSEngSS-MicroBuild2022-1ES
|
|
|
|
demands: Cmd
|
|
|
|
# If it's not devdiv, it's dnceng
|
|
|
|
${{ if ne(variables['System.TeamProject'], 'DevDiv') }}:
|
2022-10-22 12:27:57 +00:00
|
|
|
name: $(DncEngInternalBuildPool)
|
2022-08-11 12:40:33 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
steps:
|
2023-01-04 23:26:05 +00:00
|
|
|
- ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}:
|
|
|
|
- task: Powershell@2
|
|
|
|
inputs:
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
|
|
|
|
arguments: $(_GenerateLocProjectArguments)
|
|
|
|
displayName: Generate LocProject.json
|
|
|
|
condition: ${{ parameters.condition }}
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
- task: OneLocBuild@2
|
|
|
|
displayName: OneLocBuild
|
2021-03-26 13:54:15 +00:00
|
|
|
env:
|
|
|
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
2021-03-18 13:00:01 +00:00
|
|
|
inputs:
|
2021-05-22 12:59:44 +00:00
|
|
|
locProj: eng/Localize/LocProject.json
|
2021-03-18 13:00:01 +00:00
|
|
|
outDir: $(Build.ArtifactStagingDirectory)
|
|
|
|
lclSource: ${{ parameters.LclSource }}
|
|
|
|
lclPackageId: ${{ parameters.LclPackageId }}
|
|
|
|
isCreatePrSelected: ${{ parameters.CreatePr }}
|
Update dependencies from https://github.com/dotnet/arcade build 20220418.3
Microsoft.DotNet.CMake.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Arcade.Sdk
From Version 7.0.0-beta.22215.2 -> To Version 7.0.0-beta.22218.3
Dependency coherency updates
Microsoft.NETCore.App.Ref,VS.Redist.Common.NetCore.TargetingPack.x64.7.0,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.App.Host.win-x64,Microsoft.NETCore.DotNetHostResolver,Microsoft.NETCore.Platforms,Microsoft.Net.Compilers.Toolset,VS.Redist.Common.NetCore.SharedFramework.x64.7.0,Microsoft.SourceLink.GitHub,Microsoft.DotNet.XliffTasks
From Version 7.0.0-preview.4.22217.5 -> To Version 7.0.0-preview.4.22216.4 (parent: Microsoft.NET.Sdk
2022-04-19 12:34:04 +00:00
|
|
|
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
|
2021-04-15 13:14:27 +00:00
|
|
|
${{ if eq(parameters.CreatePr, true) }}:
|
2021-05-05 13:06:29 +00:00
|
|
|
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
|
2021-10-29 12:58:14 +00:00
|
|
|
${{ if eq(parameters.RepoType, 'gitHub') }}:
|
|
|
|
isShouldReusePrSelected: ${{ parameters.ReusePr }}
|
2021-03-18 13:00:01 +00:00
|
|
|
packageSourceAuth: patAuth
|
|
|
|
patVariable: ${{ parameters.CeapexPat }}
|
2021-03-26 13:54:15 +00:00
|
|
|
${{ if eq(parameters.RepoType, 'gitHub') }}:
|
|
|
|
repoType: ${{ parameters.RepoType }}
|
|
|
|
gitHubPatVariable: "${{ parameters.GithubPat }}"
|
2021-06-12 12:58:31 +00:00
|
|
|
${{ if ne(parameters.MirrorRepo, '') }}:
|
|
|
|
isMirrorRepoSelected: true
|
|
|
|
gitHubOrganization: ${{ parameters.GitHubOrg }}
|
|
|
|
mirrorRepo: ${{ parameters.MirrorRepo }}
|
|
|
|
mirrorBranch: ${{ parameters.MirrorBranch }}
|
2021-04-29 13:14:01 +00:00
|
|
|
condition: ${{ parameters.condition }}
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Localization Files
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)/loc'
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: Loc
|
2021-04-29 13:14:01 +00:00
|
|
|
condition: ${{ parameters.condition }}
|
2021-03-18 13:00:01 +00:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish LocProject.json
|
|
|
|
inputs:
|
2021-05-22 12:59:44 +00:00
|
|
|
PathtoPublish: '$(Build.SourcesDirectory)/eng/Localize/'
|
2021-03-18 13:00:01 +00:00
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: Loc
|
2021-04-29 13:14:01 +00:00
|
|
|
condition: ${{ parameters.condition }}
|