forked from requiemforatheory/PowerCity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debugging.ps1
68 lines (61 loc) · 2.39 KB
/
Debugging.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
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
Clear-Host
$path = Split-Path -Parent $MyInvocation.MyCommand.Path
Import-Module (Join-Path $path "Modules") -Force -DisableNameChecking
$parameters = @{
ConnectionDetails = @{
ServerUrl = "teamcity.codebetter.com"
Credential = Get-Credential
}
BuildConfigId = "bt437"
}
$artifactparameters = @{
ConnectionDetails = @{
ServerUrl = "teamcity.codebetter.com"
Credential = New-Object System.Management.Automation.PSCredential("teamcitysharpuser", (ConvertTo-SecureString "qwerty" -asplaintext -force))
UseSsl = $false
IsGuest = $false
}
BuildConfigId = "bt87"
BuildId = "5742"
ArtifactName = "FluentDot.sln.dups.xml"
SavePath = ("C:\Temp\Get-Artifact\" + $parameters.ArtifactName)
}
$archiveartifactparameters = @{
ConnectionDetails = @{
ServerUrl = "teamcity.codebetter.com"
Credential = New-Object System.Management.Automation.PSCredential("teamcitysharpuser", (ConvertTo-SecureString "qwerty" -asplaintext -force))
UseSsl = $false
IsGuest = $false
}
BuildConfigId = "bt87"
BuildId = "5742"
ArchiveName = "FluentDot.sln.dups.zip"
ArtifactName = "FluentDot.sln.dups.xml"
SavePath = "C:\Temp\Get-ArtifactArchive\FluentDot.sln.dups.zip"
}
$builds = Get-BuildConfigsByBuildConfigId @parameters
foreach($build in $builds)
{
Write-Host $build.Number
}
#$builds = Get-AllBuildConfigs @parameters
#$builds = Get-AllBuildsOfStatusSinceDate @parameters
#$builds = Get-AllBuildsSinceDate @parameters
#$build = Get-BuildConfigByConfigurationId @parameters
#$build = Get-BuildConfigByConfigurationName @parameters
#$build = Get-BuildConfigByProjectIdAndConfigurationId @parameters
#$build = Get-BuildConfigByProjectIdAndConfigurationName @parameters
#$builds = Get-BuildConfigsByConfigIdAndTag @parameters
#$build = Get-BuildConfigsByConfigIdAndTags -ConnectionDetails $parameters.ConnectionDetails `
# -BuildConfigId $parameters.BuildConfigId `
# -Tags @("Release", "RC")
#$groups = Get-AllGroupsByUserName @parameters
#$projects = Get-AllProjects @parameters
#$roles = Get-AllRolesByUserName @parameters
#$roles = Get-AllUserRolesByUserGroup @parameters
#$url = New-TeamCityUrl @parameters
#$connection = New-TeamCityConnection @parameters
#Get-ArtifactsByBuildId @parameters
#Get-Artifact @artifactparameters
#Get-ArtifactArchive @archiveartifactparameters
#Get-ArtifactsAsArchive @archiveartifactparameters