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
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.
so, simple add during reinstallation , try build jenkins again.
more ways please refer similar question: tfs build: `microsoft.teamfoundation.powershell' not installed on computer
Comments
Post a Comment