未加星标

PowerShell I would like you to meet TFS and VSTS

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二05 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Today I released my first PowerShell module to the PowerShell Gallery called Team . Team is a PowerShell module that exposes portions of the REST API for Visual Studio Team Services and Team Foundation Server .

It is written in pure PowerShell and can be used on Mac, linux or windows to connect to TFS or VSTS. To install Team you can use the Install-Module cmdlet. Just make sure on Windows you run PowerShell as administrator and on Mac or Linux you sudo your PowerShell session. Then simply issue the following command.

PS> Install-Module -Name Team

Once the module is installed you can view all the provided functions by running Get-Command.

PS>Get-Command -Module Team
CommandType Name Version Source
----------- ---- ------- ------
Function Add-AzureRMServiceEndpoint 0.1.1 Team
Function Add-Build 0.1.1 Team
Function Add-BuildDefinition 0.1.1 Team
Function Add-Project 0.1.1 Team
Function Add-ReleaseDefinition 0.1.1 Team
Function Add-TeamAccount 0.1.1 Team
Function Clear-DefaultProject 0.1.1 Team
Function Get-Build 0.1.1 Team
Function Get-BuildDefinition 0.1.1 Team
Function Get-CloudSubscription 0.1.1 Team
Function Get-Pool 0.1.1 Team
Function Get-Project 0.1.1 Team
Function Get-Queue 0.1.1 Team
Function Get-ReleaseDefinition 0.1.1 Team
Function Get-ServiceEndpoint 0.1.1 Team
Function Get-TeamInfo 0.1.1 Team
Function Remove-Build 0.1.1 Team
Function Remove-BuildDefinition 0.1.1 Team
Function Remove-Project 0.1.1 Team
Function Remove-ReleaseDefinition 0.1.1 Team
Function Remove-ServiceEndpoint 0.1.1 Team
Function Remove-TeamAccount 0.1.1 Team
Function Set-DefaultProject 0.1.1 Team
Function Update-Project 0.1.1 Team

This is just what is there now and more will follow. Once I put a coat of polish on the module I will open source it on GitHub .

To get started with the module make sure and call Add-TeamAccount first. This will require your Team Services account name or full TFS URL including collection and a Personal Access Token . Team only supports TFS 2017 and Team Services.

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

分页:12
转载请注明
本文标题:PowerShell I would like you to meet TFS and VSTS
本站链接:http://www.codesec.net/view/523431.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(74)