Repository navigation
Expand file tree
/
Copy pathStep_0_Migrate_Project.ps1
More file actions
86 lines (74 loc) · 2.21 KB
/
Copy pathStep_0_Migrate_Project.ps1
File metadata and controls
86 lines (74 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Param (
[Parameter (Mandatory=$FALSE)] [Boolean]$WhatIf = $TRUE
)
Write-Host " "
Write-Host "-------------------------------------------"
Write-Host " Begin Project Migration "
Write-Host "-------------------------------------------"
# Best to do a user migration first since all of the other items can reference users and groups
<#
Step #1 migrate
- Build Queues (Project Agent Pools)
- Build Environments done with Build Queues
- Repositories
- Wikis
- Service Connections
#>
& .\Step_1_Migrate_Project.ps1 -WhatIf $WhatIf
<#
Step #2 migrate
- Areas and Iterations
- Teams
- Work Item Querys
- Variable Groups
- Build Pipelines
- Release Pipelines
- Task Groups
#>
& .\Step_2_Migrate_Project.ps1 -WhatIf $WhatIf
<#
Step #3 migrate
- Work Item Types belonging to the target process template will have ReflectedWorkItemId field added
- Work Items (Including 'Test Cases')
In batches where Created Date Between
0 - 100
100 - 200
200 - 300
300 - 400
400 - 500
500 - 600
600 - 700
800 - 800
800 - 900
900 - 1000
1000 - 1100
1100 - 1200
1200 - 1300
1300 - 1500
1500 - 3000
3000 +
Since the Azure REST API for work items has a query limit if 20,000, calls to the API have been broken up into batches based on the Work item's Created Date field
Each batch is listed below with the expected work item count to be migrated. The work item counts may vary since the work items are being updated daily.
#>
& .\Step_3_Migrate_Project.ps1 -WhatIf $WhatIf
<#
Step #4 migrate
- Test Cases
- Groups
- Test Configurations
- Test Variables
- Test Plans and Suites
- Service Hooks
- Policies
- Dashboards
- Delivery Plans
#>
& .\Step_4_Migrate_Project.ps1 -WhatIf $WhatIf
<#
Step #5 migrate
- Artifacts
#>
& .\Step_5_Migrate_Project.ps1 -WhatIf $WhatIf
Write-Host "------------------------------------------------"
Write-Host " Completed Project MIgration "
Write-Host "------------------------------------------------"