217f3f0968
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.CMake.Sdk From Version 7.0.0-beta.22408.3 -> To Version 7.0.0-beta.22410.3
106 lines
No EOL
3.8 KiB
YAML
106 lines
No EOL
3.8 KiB
YAML
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
|
|
pool: ''
|
|
|
|
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
|
|
AutoCompletePr: false
|
|
ReusePr: true
|
|
UseLfLineEndings: true
|
|
UseCheckedInLocProjectJson: false
|
|
LanguageSet: VS_Main_Languages
|
|
LclSource: lclFilesInRepo
|
|
LclPackageId: ''
|
|
RepoType: gitHub
|
|
GitHubOrg: dotnet
|
|
MirrorRepo: ''
|
|
MirrorBranch: main
|
|
condition: ''
|
|
|
|
jobs:
|
|
- job: OneLocBuild
|
|
|
|
dependsOn: ${{ parameters.dependsOn }}
|
|
|
|
displayName: OneLocBuild
|
|
|
|
${{ 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') }}:
|
|
name: NetCore1ESPool-Internal
|
|
demands: ImageOverride -equals windows.vs2019.amd64
|
|
|
|
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
|
|
|
|
|
|
steps:
|
|
- task: Powershell@2
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
|
|
arguments: $(_GenerateLocProjectArguments)
|
|
displayName: Generate LocProject.json
|
|
condition: ${{ parameters.condition }}
|
|
|
|
- task: OneLocBuild@2
|
|
displayName: OneLocBuild
|
|
env:
|
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
|
inputs:
|
|
locProj: eng/Localize/LocProject.json
|
|
outDir: $(Build.ArtifactStagingDirectory)
|
|
lclSource: ${{ parameters.LclSource }}
|
|
lclPackageId: ${{ parameters.LclPackageId }}
|
|
isCreatePrSelected: ${{ parameters.CreatePr }}
|
|
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
|
|
${{ if eq(parameters.CreatePr, true) }}:
|
|
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
|
|
${{ if eq(parameters.RepoType, 'gitHub') }}:
|
|
isShouldReusePrSelected: ${{ parameters.ReusePr }}
|
|
packageSourceAuth: patAuth
|
|
patVariable: ${{ parameters.CeapexPat }}
|
|
${{ if eq(parameters.RepoType, 'gitHub') }}:
|
|
repoType: ${{ parameters.RepoType }}
|
|
gitHubPatVariable: "${{ parameters.GithubPat }}"
|
|
${{ if ne(parameters.MirrorRepo, '') }}:
|
|
isMirrorRepoSelected: true
|
|
gitHubOrganization: ${{ parameters.GitHubOrg }}
|
|
mirrorRepo: ${{ parameters.MirrorRepo }}
|
|
mirrorBranch: ${{ parameters.MirrorBranch }}
|
|
condition: ${{ parameters.condition }}
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: Publish Localization Files
|
|
inputs:
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)/loc'
|
|
PublishLocation: Container
|
|
ArtifactName: Loc
|
|
condition: ${{ parameters.condition }}
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: Publish LocProject.json
|
|
inputs:
|
|
PathtoPublish: '$(Build.SourcesDirectory)/eng/Localize/'
|
|
PublishLocation: Container
|
|
ArtifactName: Loc
|
|
condition: ${{ parameters.condition }} |