Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools repository (#16269)
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk committed Jan 20, 2021
1 parent cd446b4 commit 8a96f30
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 152 deletions.
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.

0 comments on commit 8a96f30

Please sign in to comment.