@@ -596,7 +596,7 @@ function ExecAndGetMigrationID {
596
596
param (
597
597
[scriptblock]$ScriptBlock
598
598
)
599
- $MigrationID = Exec $ ScriptBlock | ForEach-Object {
599
+ $MigrationID = & @ ScriptBlock | ForEach-Object {
600
600
Write-Host $_
601
601
$_
602
602
} | Select-String -Pattern ""\(ID: (.+)\)"" | ForEach-Object { $_.matches.groups[1] }
@@ -631,7 +631,7 @@ function ExecBatch {
631
631
expected . AppendLine ( $ "# =========== Waiting for all migrations to finish for Organization: { ADO_ORG } ===========") ;
632
632
expected . AppendLine ( ) ;
633
633
expected . AppendLine ( $ "# === Waiting for repo migration to finish for Team Project: { ADO_TEAM_PROJECT } and Repo: { FOO_REPO } . Will then complete the below post migration steps. ===") ;
634
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
634
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
635
635
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
636
636
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
637
637
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -693,7 +693,7 @@ function ExecAndGetMigrationID {
693
693
param (
694
694
[scriptblock]$ScriptBlock
695
695
)
696
- $MigrationID = Exec $ ScriptBlock | ForEach-Object {
696
+ $MigrationID = & @ ScriptBlock | ForEach-Object {
697
697
Write-Host $_
698
698
$_
699
699
} | Select-String -Pattern ""\(ID: (.+)\)"" | ForEach-Object { $_.matches.groups[1] }
@@ -728,7 +728,7 @@ function ExecBatch {
728
728
expected . AppendLine ( $ "# =========== Waiting for all migrations to finish for Organization: { ADO_ORG } ===========") ;
729
729
expected . AppendLine ( ) ;
730
730
expected . AppendLine ( $ "# === Waiting for repo migration to finish for Team Project: { ADO_TEAM_PROJECT } and Repo: { FOO_REPO } . Will then complete the below post migration steps. ===") ;
731
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
731
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
732
732
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
733
733
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
734
734
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -821,7 +821,7 @@ function ExecAndGetMigrationID {
821
821
param (
822
822
[scriptblock]$ScriptBlock
823
823
)
824
- $MigrationID = Exec $ ScriptBlock | ForEach-Object {
824
+ $MigrationID = & @ ScriptBlock | ForEach-Object {
825
825
Write-Host $_
826
826
$_
827
827
} | Select-String -Pattern ""\(ID: (.+)\)"" | ForEach-Object { $_.matches.groups[1] }
@@ -864,7 +864,7 @@ function ExecBatch {
864
864
expected . AppendLine ( $ "# =========== Waiting for all migrations to finish for Organization: { ADO_ORG } ===========") ;
865
865
expected . AppendLine ( ) ;
866
866
expected . AppendLine ( $ "# === Waiting for repo migration to finish for Team Project: { ADO_TEAM_PROJECT } and Repo: { FOO_REPO } . Will then complete the below post migration steps. ===") ;
867
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
867
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
868
868
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
869
869
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
870
870
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -885,7 +885,7 @@ function ExecBatch {
885
885
expected . AppendLine ( "}" ) ;
886
886
expected . AppendLine ( ) ;
887
887
expected . AppendLine ( $ "# === Waiting for repo migration to finish for Team Project: { ADO_TEAM_PROJECT } and Repo: { BAR_REPO } . Will then complete the below post migration steps. ===") ;
888
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
888
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
889
889
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ BAR_REPO } \" ]) {{") ;
890
890
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ BAR_REPO } \" ]") ;
891
891
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -962,7 +962,7 @@ function ExecAndGetMigrationID {
962
962
param (
963
963
[scriptblock]$ScriptBlock
964
964
)
965
- $MigrationID = Exec $ ScriptBlock | ForEach-Object {
965
+ $MigrationID = & @ ScriptBlock | ForEach-Object {
966
966
Write-Host $_
967
967
$_
968
968
} | Select-String -Pattern ""\(ID: (.+)\)"" | ForEach-Object { $_.matches.groups[1] }
@@ -1002,7 +1002,7 @@ function ExecBatch {
1002
1002
expected . AppendLine ( $ "# =========== Waiting for all migrations to finish for Organization: { ADO_ORG } ===========") ;
1003
1003
expected . AppendLine ( ) ;
1004
1004
expected . AppendLine ( $ "# === Waiting for repo migration to finish for Team Project: { ADO_TEAM_PROJECT } and Repo: { FOO_REPO } . Will then complete the below post migration steps. ===") ;
1005
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1005
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1006
1006
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1007
1007
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1008
1008
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1059,7 +1059,7 @@ public async Task ParallelScript_Create_Teams_Option_Should_Generate_Create_Team
1059
1059
expected . AppendLine ( $ "Exec {{ gh ado2gh create-team --github-org \" { GITHUB_ORG } \" --team-name \" { ADO_TEAM_PROJECT } -Admins\" }}") ;
1060
1060
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1061
1061
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1062
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1062
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1063
1063
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1064
1064
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1065
1065
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1104,7 +1104,7 @@ public async Task ParallelScript_Link_Idp_Groups_Option_Should_Generate_Create_T
1104
1104
expected . AppendLine ( $ "Exec {{ gh ado2gh create-team --github-org \" { GITHUB_ORG } \" --team-name \" { ADO_TEAM_PROJECT } -Admins\" --idp-group \" { ADO_TEAM_PROJECT } -Admins\" }}") ;
1105
1105
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1106
1106
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1107
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1107
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1108
1108
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1109
1109
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1110
1110
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1148,7 +1148,7 @@ public async Task ParallelScript_Lock_Ado_Repo_Option_Should_Generate_Lock_Ado_R
1148
1148
expected . AppendLine ( $ "Exec {{ gh ado2gh lock-ado-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" }}") ;
1149
1149
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1150
1150
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1151
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1151
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1152
1152
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1153
1153
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1154
1154
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1187,7 +1187,7 @@ public async Task ParallelScript_Disable_Ado_Repo_Option_Should_Generate_Disable
1187
1187
var expected = new StringBuilder ( ) ;
1188
1188
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1189
1189
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1190
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1190
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1191
1191
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1192
1192
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1193
1193
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1229,7 +1229,7 @@ public async Task ParallelScript_Integrate_Boards_Option_Should_Generate_Auto_Li
1229
1229
var expected = new StringBuilder ( ) ;
1230
1230
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1231
1231
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1232
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1232
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1233
1233
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1234
1234
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1235
1235
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
@@ -1277,7 +1277,7 @@ public async Task ParallelScript_Rewire_Pipelines_Option_Should_Generate_Share_S
1277
1277
expected . AppendLine ( $ "Exec {{ gh ado2gh share-service-connection --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --service-connection-id \" { APP_ID } \" }}") ;
1278
1278
expected . AppendLine ( $ "$MigrationID = ExecAndGetMigrationID {{ gh ado2gh migrate-repo --ado-org \" { ADO_ORG } \" --ado-team-project \" { ADO_TEAM_PROJECT } \" --ado-repo \" { FOO_REPO } \" --github-org \" { GITHUB_ORG } \" --github-repo \" { ADO_TEAM_PROJECT } -{ FOO_REPO } \" }}") ;
1279
1279
expected . AppendLine ( $ "$RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ] = $MigrationID") ;
1280
- expected . AppendLine ( "$CanExecuteBatch = $true " ) ;
1280
+ expected . AppendLine ( "$CanExecuteBatch = $false " ) ;
1281
1281
expected . AppendLine ( $ "if ($null -ne $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]) {{") ;
1282
1282
expected . AppendLine ( $ " gh ado2gh wait-for-migration --migration-id $RepoMigrations[\" { ADO_ORG } /{ ADO_TEAM_PROJECT } -{ FOO_REPO } \" ]") ;
1283
1283
expected . AppendLine ( " $CanExecuteBatch = ($lastexitcode -eq 0)" ) ;
0 commit comments