windows - Team foundation power tool is not getting recognize by Jenkins even it's installed to it -


i have installed team foundation power tool jenkins server. have tfs 2015 installed full vs 2015. want run powershell script pull project tfs. able run jenkins server. when try pass script jenkins build definition using powershell plugin. getting errors regarding team foundation power tool. jenkins complaining team foundation power tool not installed. tried uninstall , reinstall tool. jenkins service running under same using installed tool. also, tool not user specific. it's installed users. can please help?

add-pssnapin : windows powershell snap-in 'microsoft.teamfoundation.powershell' not installed on computer. @ c:\users\mvadaria\appdata\local\temp\jenkins4325377511943060199.ps1:22 char:1 + add-pssnapin microsoft.teamfoundation.powershell + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : invalidargument: (microsoft.teamfoundation.powershell:string) [add-pssnapin], psargument exception + fullyqualifiederrorid : addpssnapinread,microsoft.powershell.commands.addpssnapincommand get-tfschilditem : term 'get-tfschilditem' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again. @ c:\users\mvadaria\appdata\local\temp\jenkins4325377511943060199.ps1:25 char:10 + $items = get-tfschilditem $autodeploydir -recurse -server $tfscollection + ~~~~~~~~~~~~~~~~ + categoryinfo : objectnotfound: (get-tfschilditem:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception

enter image description here can see, can run manually inside server.

according error

add-pssnapin : windows powershell snap-in 'microsoft.teamfoundation.powershell' not installed on computer.

may tfs powertools not installed fully. default doesn’t install ps cmdlets.

enter image description here

so, simple add during reinstallation , try build jenkins again.

enter image description here

more ways please refer similar question: tfs build: `microsoft.teamfoundation.powershell' not installed on computer


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -