Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added GitRepository object to BuildDefinition #82

Merged
merged 40 commits into from
Aug 27, 2018
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
98a0da2
adapt integration test to additional VSTS pool 'Hosted Ubuntu 1604'
KaiWalter Jul 26, 2018
0954436
Updating psd1 and readme but not releasing new version yet.
DarqueWarrior Jul 29, 2018
6895c67
Merge remote-tracking branch 'upstream/master'
KaiWalter Jul 29, 2018
7afb6ed
breaking BuildDefinition down to Target
KaiWalter Jul 29, 2018
2a1ab7d
added integration tests for BuildDefinition
KaiWalter Jul 29, 2018
ac087b0
fixed identation in integration test
KaiWalter Jul 29, 2018
53ba724
added integration tests for BuildDefinition
KaiWalter Jul 29, 2018
2c5d978
Merge branch 'master' of github.com:KaiWalter/vsteam
KaiWalter Jul 29, 2018
6cae4b7
merge upstream
KaiWalter Jul 30, 2018
a279ff2
removed pools.ps1xml again from vsteam.psd1
KaiWalter Jul 31, 2018
7f5dc06
merge upstream
KaiWalter Aug 1, 2018
9809f21
rollback to version w/o Process and Phase
KaiWalter Aug 1, 2018
751f792
added integration test for BuildDefinition
KaiWalter Aug 1, 2018
b8c5491
rollback process and phase breakdown
KaiWalter Aug 1, 2018
288d2e5
fix typo
KaiWalter Aug 1, 2018
5a3fa0d
Merge remote-tracking branch 'upstream/master'
KaiWalter Aug 2, 2018
12e5073
Merge remote-tracking branch 'darquewarrior/master'
DarqueWarrior Aug 3, 2018
d41898d
Updated readme and updated build def tests to run on TFS and VSTS.
DarqueWarrior Aug 3, 2018
c8d1260
Merge remote-tracking branch 'upstream/master'
KaiWalter Aug 3, 2018
aea1e4d
Merge remote-tracking branch 'upstream/master'
KaiWalter Aug 12, 2018
2c2a36e
initial drilldown build def to process, phases, steps
KaiWalter Aug 13, 2018
f0fe9d8
added basic attrs to build def steps
KaiWalter Aug 13, 2018
84a8626
fixed build def unit tests
KaiWalter Aug 13, 2018
e7cb346
adapted formats for typed build defs
KaiWalter Aug 13, 2018
8102338
hooked up build def with PS provider project
KaiWalter Aug 13, 2018
5108cc4
add formats for process+phase+step
KaiWalter Aug 13, 2018
0481690
added missing Build Def + Phase properties
KaiWalter Aug 14, 2018
b7c2898
Merge remote-tracking branch 'upstream/master'
KaiWalter Aug 15, 2018
187f257
Getting Close. All tests passing.
DarqueWarrior Aug 17, 2018
afea396
Merge branch 'reivew'
DarqueWarrior Aug 17, 2018
b32ef6f
100% code coverage on teamspsdrive file.
DarqueWarrior Aug 17, 2018
e43475b
All integration tests passing.
DarqueWarrior Aug 17, 2018
a7fa45d
Added yaml and phased process types.
DarqueWarrior Aug 17, 2018
0c0d97b
Updated help for version class.
DarqueWarrior Aug 18, 2018
b50149c
Fixed broken tests
DarqueWarrior Aug 18, 2018
014258d
realign with upstream
KaiWalter Aug 21, 2018
bb94a10
remove obsolete output from buildDefinitions module
KaiWalter Aug 22, 2018
337172a
added GitRepository object to BuildDefinition
KaiWalter Aug 22, 2018
9a90727
rolled back Get-VSTeamGitRepo in Get-VSTeamBuildDef
KaiWalter Aug 23, 2018
582a113
Merge branch 'master' of github.com:KaiWalter/vsteam
KaiWalter Aug 26, 2018
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
Prev Previous commit
Next Next commit
Updated help for version class.
Updated help for update service endpoint
Clear last two Script Analyzer warnings
DarqueWarrior committed Aug 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 0c0d97bd40025f1d0e8470e7cef69c637738a9b8
2 changes: 2 additions & 0 deletions .docs/Update-VSTeamServiceEndpoint.md
Original file line number Diff line number Diff line change
@@ -37,6 +37,8 @@ Required: true
Accept pipeline input: true (ByPropertyName)
```

<!-- #include "./params/force.md" -->

## INPUTS

## OUTPUTS
8 changes: 8 additions & 0 deletions docs/Update-VSTeamServiceEndpoint.md
Original file line number Diff line number Diff line change
@@ -52,6 +52,14 @@ Required: true
Accept pipeline input: true (ByPropertyName)
```

### -Force

Forces the command without confirmation

```yaml
Type: SwitchParameter
```

## INPUTS

## OUTPUTS
23 changes: 23 additions & 0 deletions en-US/VSTeam-Help.xml
Original file line number Diff line number Diff line change
@@ -13480,6 +13480,17 @@ Demo-CI Demo-CI-45 notStarted</dev:code>
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none">
<maml:name>Force</maml:name>
<maml:Description>
<maml:para>Forces the command without confirmation</maml:para>
</maml:Description>
<dev:type>
<maml:name>SwitchParameter</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>False</dev:defaultValue>
</command:parameter>
</command:syntaxItem>
</command:syntax>
<command:parameters>
@@ -13521,6 +13532,18 @@ Demo-CI Demo-CI-45 notStarted</dev:code>
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none">
<maml:name>Force</maml:name>
<maml:Description>
<maml:para>Forces the command without confirmation</maml:para>
</maml:Description>
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
<dev:type>
<maml:name>SwitchParameter</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>False</dev:defaultValue>
</command:parameter>
</command:parameters>
<command:inputTypes />
<command:returnValues>
4 changes: 2 additions & 2 deletions en-US/about_vsteam.help.txt
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ LONG DESCRIPTION
-ProjectName parameter is dynamic and you can use tab completion to cycle
through all the projects.

Using the $Global:VSTeamVersionTable variable you can control which version of the APIs are used.
Using the [VSTeamVersions] class you can control which version of the APIs are used.

PS C:\> $Global:VSTeamVersionTable
PS C:\> Get-VSTeamAPIVersion

Name Value
---- -----
18 changes: 11 additions & 7 deletions src/serviceendpoints.psm1
Original file line number Diff line number Diff line change
@@ -451,13 +451,15 @@ function Get-VSTeamServiceEndpoint {
}

function Update-VSTeamServiceEndpoint {
[CmdletBinding()]
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = "Medium")]
param(
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string] $id,

[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[hashtable] $object
[hashtable] $object,

[switch] $Force
)

DynamicParam {
@@ -470,13 +472,15 @@ function Update-VSTeamServiceEndpoint {

$body = $object | ConvertTo-Json

# Call the REST API
$resp = _callAPI -ProjectName $projectName -Area 'distributedtask' -Resource 'serviceendpoints' -Id $id `
-Method Put -ContentType 'application/json' -body $body -Version $([VSTeamVersions]::DistributedTask)
if ($Force -or $pscmdlet.ShouldProcess($item, "Update Service Endpoint")) {
# Call the REST API
$resp = _callAPI -ProjectName $projectName -Area 'distributedtask' -Resource 'serviceendpoints' -Id $id `
-Method Put -ContentType 'application/json' -body $body -Version $([VSTeamVersions]::DistributedTask)

_trackProgress -projectName $projectName -resp $resp -title 'Updating Service Endpoint' -msg "Updating $id"
_trackProgress -projectName $projectName -resp $resp -title 'Updating Service Endpoint' -msg "Updating $id"

return Get-VSTeamServiceEndpoint -ProjectName $ProjectName -id $id
return Get-VSTeamServiceEndpoint -ProjectName $ProjectName -id $id
}
}
}

8 changes: 0 additions & 8 deletions src/team.psm1
Original file line number Diff line number Diff line change
@@ -493,14 +493,6 @@ function Invoke-VSTeamRequest {
# Set the module version
[VSTeamVersions]::ModuleVersion = _getModuleVersion

# Dynamic parameters get called alot. This can cause
# multiple calls to TFS/VSTS for a single function call
# so I am going to try and cache the values.
$Global:VSTeamProjectCache = @{
'projects' = $null
'timestamp' = -1
}

Set-Alias gti Get-VSTeamInfo
Set-Alias ata Add-VSTeamAccount
Set-Alias ivr Invoke-VSTeamRequest
3 changes: 3 additions & 0 deletions src/teamspsdrive.ps1
Original file line number Diff line number Diff line change
@@ -74,6 +74,9 @@ class VSTeamVersions {
static [string] $ModuleVersion = $null
}

# Dynamic parameters get called alot. This can cause
# multiple calls to TFS/VSTS for a single function call
# so I am going to try and cache the values.
class VSTeamProjectCache {
static [int] $timestamp = -1
static [object] $projects = $null