Sync eng/common directory with azure-sdk-tools for PR 1716 (#2467)
* Update links with master to use main * Update ci.yml files Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
parent
2ea2cf8b57
commit
8b0ebb39f5
@ -1,3 +1,3 @@
|
||||
# Common Engineering System
|
||||
|
||||
Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md)
|
||||
Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md)
|
||||
|
||||
@ -177,5 +177,5 @@ else
|
||||
{
|
||||
LogWarning "The function for 'GetGithubIoDocIndexFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
# and some ref (branch, tag, etc.) or commit hash. Only runs on PRs.
|
||||
# ContinueOnError - true: Pipeline warns on spelling error
|
||||
# false: Pipeline fails on spelling error
|
||||
# TargetBranch - Target ref (e.g. master) to compare to create file change
|
||||
# TargetBranch - Target ref (e.g. main) to compare to create file change
|
||||
# list.
|
||||
# CspellConfigPath - Path to cspell.json config location
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ parameters:
|
||||
default: ''
|
||||
- name: PRBranchName
|
||||
type: string
|
||||
default: 'master-rdme'
|
||||
default: 'main-rdme'
|
||||
- name: PRLabels
|
||||
type: string
|
||||
default: 'auto-merge'
|
||||
|
||||
@ -16,7 +16,7 @@ steps:
|
||||
if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
|
||||
{
|
||||
Write-Host "##vso[task.LogIssue type=error;]Changes to files under 'eng/common' directory should not be made in this Repo`n${filesInCommonDir}"
|
||||
Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md"
|
||||
Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ else
|
||||
{
|
||||
Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
exit(1)
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ if ($packages)
|
||||
Write-Host "Version: $($version)"
|
||||
Write-Host "SDK Type: $($pkgInfo.SdkType)"
|
||||
|
||||
# Run create review step only if build is triggered from master branch or if version is GA.
|
||||
# Run create review step only if build is triggered from main branch or if version is GA.
|
||||
# This is to avoid invalidating review status by a build triggered from feature branch
|
||||
if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease))
|
||||
{
|
||||
|
||||
@ -126,7 +126,7 @@ function Get-AllPkgProperties ([string]$ServiceDirectory = $null)
|
||||
return $pkgPropsResult
|
||||
}
|
||||
|
||||
# Given the metadata url under https://github.com/Azure/azure-sdk/tree/master/_data/releases/latest,
|
||||
# Given the metadata url under https://github.com/Azure/azure-sdk/tree/main/_data/releases/latest,
|
||||
# the function will return the csv metadata back as part of response.
|
||||
function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri)
|
||||
{
|
||||
@ -143,7 +143,7 @@ function Get-PkgPropsForEntireService ($serviceDirectoryPath)
|
||||
{
|
||||
LogError "The function for '$GetPackageInfoFromRepoFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
}
|
||||
|
||||
foreach ($directory in (Get-ChildItem $serviceDirectoryPath -Directory))
|
||||
|
||||
@ -180,7 +180,7 @@ else
|
||||
{
|
||||
LogError "The function 'SetPackageVersion' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
@ -31,6 +31,6 @@ if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn"))
|
||||
} else {
|
||||
LogError "The function for '$UpdateFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ function RetrievePackages($artifactLocation) {
|
||||
{
|
||||
LogError "The function for '$GetPackageInfoFromPackageFileFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -240,6 +240,6 @@ else
|
||||
{
|
||||
LogWarning "The function for '$PublishGithubIODocsFn' was not found.`
|
||||
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
|
||||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user