Skip to content
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/TestResources/Remove-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ if (![string]::IsNullOrWhiteSpace($ServiceDirectory)) {
$preRemovalScript = Join-Path -Path $root -ChildPath 'remove-test-resources-pre.ps1'
if (Test-Path $preRemovalScript) {
Log "Invoking pre resource removal script '$preRemovalScript'"
&$preRemovalScript -ResourceGroupName $ResourceGroupName @PSBoundParameters

if ($PSCmdlet.ParameterSetName.StartsWith('ResourceGroup')) {
$PSBoundParameters.Add('ResourceGroupName', $ResourceGroupName);
}

&$preRemovalScript @PSBoundParameters
}
}

Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Submit-PullRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ param(
$PRBody = $PRTitle
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$query = "state=open&head=${PROwner}:${PRBranch}&base=${BaseBranch}"

Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/copy-docs-to-blobstorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ param (
$UploadLatest=1
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$Language = $Language.ToLower()

Expand Down
8 changes: 5 additions & 3 deletions eng/common/scripts/copy-readmes-to-docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ param (
[String]$TargetServices
)

$PACKAGE_README_REGEX = ".*[\/\\]sdk[\\\/][^\/\\]+[\\\/][^\/\\]+[\/\\]README\.md"
Write-Host "> $PSCommandPath $args"

$PACKAGE_README_REGEX = ".*[\/\\]sdk[\\\/][^\/\\]+[\\\/][^\/\\]+[\/\\]README\.md"

Write-Host "repo is $CodeRepo"

Expand Down Expand Up @@ -52,10 +54,10 @@ else {

foreach($service in $selectedServices){
$readmePath = Join-Path -Path $CodeRepo -ChildPath "sdk/$service"
Write-Host "Examining: $readmePath"
Write-Host "Examining: $readmePath"

$libraries = $metadataResponse | Where-Object { $_.RepoPath -eq $service }

foreach($library in $libraries){

$package = $library.Package
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/create-tags-and-git-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param (
[switch]$forceCreate = $false
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$VERSION_REGEX = "(?<major>\d+)(\.(?<minor>\d+))?(\.(?<patch>\d+))?((?<pre>[^0-9][^\s]+))?"
$SDIST_PACKAGE_REGEX = "^(?<package>.*)\-(?<versionstring>$VERSION_REGEX$)"
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/git-branch-push.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ param(
[string] $PushArgs = ""
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

# This is necessay because of the janky git command output writing to stderr.
# Without explicitly setting the ErrorActionPreference to continue the script
Expand Down