Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync eng/common directory with azure-sdk-tools for PR 1203 #13659

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/common/scripts/Add-IssueComment.ps1
Expand Up @@ -16,7 +16,7 @@ param(
[string]$AuthToken
)

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

try {
Add-GithubIssueComment -RepoOwner $RepoOwner -RepoName $RepoName `
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Add-IssueLabels.ps1
Expand Up @@ -16,7 +16,7 @@ param(
[string]$AuthToken
)

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

try {
Add-GithubIssueLabels -RepoOwner $RepoOwner -RepoName $RepoName `
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Delete-RemoteBranches.ps1
Expand Up @@ -5,7 +5,7 @@ param(
$AuthToken
)

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

LogDebug "Operating on Repo [ $RepoName ]"
try{
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Get-PullRequestCreator.ps1
Expand Up @@ -12,7 +12,7 @@ param (
[string]$AuthToken
)

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

try
{
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Package-Properties.ps1
Expand Up @@ -93,7 +93,7 @@ function Get-PkgProperties
{
$pkgDirectoryPath = Join-Path $serviceDirectoryPath $directory.Name

if ((Get-ChildItem -Path Function: | ? { $_.Name -eq $GetPackageInfoFromRepoFn }).Count -gt 0)
if ($GetPackageInfoFromRepoFn -and (Test-Path "Function:$GetPackageInfoFromRepoFn"))
{
$pkgProps = &$GetPackageInfoFromRepoFn -pkgPath $pkgDirectoryPath -serviceDirectory $ServiceDirectory -pkgName $PackageName
}
Expand Down
3 changes: 1 addition & 2 deletions eng/common/scripts/Queue-Pipeline.ps1
Expand Up @@ -21,8 +21,7 @@ param(
[string]$Base64EncodedAuthToken
)

. "${PSScriptRoot}\logging.ps1"
. "${PSScriptRoot}\Invoke-DevOpsAPI.ps1"
. (Join-Path $PSScriptRoot common.ps1)

if ($CancelPreviousBuilds)
{
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Submit-PullRequest.ps1
Expand Up @@ -59,7 +59,7 @@ param(
[boolean]$CloseAfterOpenForTesting=$false
)

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

try {
$resp = Get-GitHubPullRequests -RepoOwner $RepoOwner -RepoName $RepoName `
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Update-ChangeLog.ps1
Expand Up @@ -22,7 +22,7 @@ if ($ReleaseDate -and ($Unreleased -eq $True)) {
exit 1
}

. "${PSScriptRoot}\common.ps1"
. (Join-Path $PSScriptRoot common.ps1)

if ($ReleaseDate)
{
Expand Down