-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJIRA2TFS.ps1
30 lines (23 loc) · 1.06 KB
/
JIRA2TFS.ps1
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
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
$Encoding = [Console]::OutputEncoding = [Console]::InputEncoding = New-Object System.Text.UTF8Encoding;
# Clear-Host;
# Set-Location $PSScriptRoot;
Set-Location "E:\Outils_Exploit\JIRA2TFS";
$RootFolder = (Get-Item -Path ".\").FullName;
$DataFolder = Resolve-Path "$RootFolder\Data";
$LibraryFolder = Resolve-Path "$RootFolder\Lib";
$ConfigFilePath = "$RootFolder\Config\config.json";
$ConfigFileContent = $(Get-Content -Path $ConfigFilePath -Raw | ConvertFrom-Json);
. $LibraryFolder\Set-Logger.ps1;
. $LibraryFolder\Jira2TFSExtensions.ps1;
. $LibraryFolder\JiraExtensions.ps1;
. $LibraryFolder\TFSExtensions.ps1;
$TFSServerUrl = $ConfigFileContent.TFS.ServerUrl;
$TFSTeamProject = $ConfigFileContent.TFS.TeamProject;
$JiraServerUrl = $ConfigFileContent.JIRA.ServerUrl;
$JiraUser = $ConfigFileContent.JIRA.User;
$JiraToken = $ConfigFileContent.JIRA.Token;
$JiraDaysOffset = $ConfigFileContent.JIRA.DaysOffset;
$TfsChangesets = Get-Changesets;
$TfsBuilds = Get-Builds;
$JiraIssues = Get-JiraIssues;