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 repository #16269

Merged
merged 1 commit into from
Jan 20, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion eng/common/pipelines/templates/steps/bypass-local-dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ steps:
# https://github.com/actions/virtual-environments/issues/798
- script: sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
displayName: Bypass local DNS server to workaround issue resolving cognitiveservices names
condition: and(succeededOrFailed(), eq(variables['OSVmImage'], 'ubuntu-18.04'))
condition: |
and(
succeededOrFailed(),
eq(variables['OSVmImage'], 'ubuntu-18.04'),
eq(variables['Container'], '')
)
2 changes: 1 addition & 1 deletion eng/common/pipelines/templates/steps/verify-agent-os.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:
parameters:
OSVmImage: $(OSVmImage)

steps:
Expand Down
33 changes: 33 additions & 0 deletions eng/common/scripts/Delete-RemoteTag.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
param(
$Repository,
$Tag,
$AuthToken
)

. (Join-Path $PSScriptRoot common.ps1)

$repositoryParts = $Repository.Split("/")

if ($repositoryParts.Length -ne 2)
{
LogError "Repository is not a valid format."
}

$repositoryOwner = $repositoryParts[0]
LogDebug "Repository owner is: $repositoryOwner"

$repositoryName = $repositoryParts[1]
LogDebug "Reposiory name is: $repositoryName"

$ref = "tags/$Tag"
LogDebug "Calculated ref is: $ref"

try
{
Remove-GitHubSourceReferences -RepoOwner $repositoryOwner -RepoName $repositoryName -Ref $ref -AuthToken $AuthToken
}
catch
{
LogError "Remove-GitHubSourceReferences failed with exception:`n$_"
exit 1
}
150 changes: 0 additions & 150 deletions eng/common/scripts/Generate-DocIndex.ps1

This file was deleted.