jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
28 stars 17 forks source link

VSTS Build step "TFVC - Check out files" error #72

Closed rahulkrjain closed 5 years ago

rahulkrjain commented 5 years ago

We are facing the common build issue for all projects for build having "TFVC - Check out files" build step. The build step failing with error "System.Collections.Generic.KeyNotFoundException: The service endpoint was not found PowerShell script completed with 1 errors." I have attached the logs zip file. (logs_74443\Job\3_Checking out files from source control.txt) logs_74443.zip We facing the issue since 1.5 moths, before that it was working for all projects.

[In Aug 2018, we also faced the same issue and then I created a support ticket 118081618803208. However that time error was different in logs but it was working after 2 days. no specific fix was reported in ticket.

[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null]

jessehouwing commented 5 years ago

Have you tried upgrading to the latest build agent? There was a bug in the agent that didn't populate the service endpoint for legacy powershell tasks.

On Mon, 15 Oct 2018, 07:04 rahulkrjain, notifications@github.com wrote:

We are facing the common build issue for all projects for build having "TFVC - Check out files" build step. The build step failing with error "System.Collections.Generic.KeyNotFoundException: The service endpoint was not found PowerShell script completed with 1 errors." I have attached the logs zip file. (logs_74443\Job\3_Checking out files from source control.txt) logs_74443.zip https://github.com/jessehouwing/vsts-tfvc-tasks/files/2477449/logs_74443.zip We facing the issue since 1.5 moths, before that it was working for all projects.

[In Aug 2018, we also faced the same issue and then I created a support ticket 118081618803208. However that time error was different in logs but it was working after 2 days. no specific fix was reported in ticket.

[error]System.Management.Automation.ParameterBindingValidationException:

Cannot bind argument to parameter 'Name' because it is null]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/72, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS1EPq4tveYLNE1JMEC2IcFbnsb2Qks5ulBdTgaJpZM4Xbl9d .

btremblaymtech commented 5 years ago

Hi, Since last friday, we experienced the same issue with the step 'Update gated changes'! We are using VisualStudio.com (https://maestrovsts.visualstudio.com). The Build agent is AGENT_VERSION = 2.138.6

Here is the error we get: 2018-10-15T17:46:42.4033642Z ##[section]Starting: Update gated changes 2018-10-15T17:46:42.4038378Z ============================================================================== 2018-10-15T17:46:42.4038516Z Task : TFVC - Update gated changes 2018-10-15T17:46:42.4038654Z Description : Updates the gated changes with the local workspace prior to checking in. 2018-10-15T17:46:42.4038767Z Version : 1.2.6 2018-10-15T17:46:42.4038859Z Author : Jesse Houwing 2018-10-15T17:46:42.4038982Z Help : Version: 1.2.6. More Information 2018-10-15T17:46:42.4039131Z ============================================================================== 2018-10-15T17:46:42.4046344Z Preparing task execution handler. 2018-10-15T17:46:42.5636106Z Executing the powershell script: C:\Agents\305_work_tasks\TFVCUpdateShelveset_7164ddbc-7979-4e2c-a2f8-e7a89b6ba026\1.2.6\TfvcUpdateShelveset.ps1 2018-10-15T17:46:43.8899166Z ##[error]System.Collections.Generic.KeyNotFoundException: The service endpoint Maestro was not found 2018-10-15T17:46:43.9005488Z at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2018-10-15T17:46:43.9016224Z ##[error]PowerShell script completed with 1 errors. 2018-10-15T17:46:43.9017310Z ##[section]Finishing: Update gated changes

I attached the 2 log files...

thanks Benoit

Agent_20181015-173231-utc.log Worker_20181015-173946-utc.log

rahulkrjain commented 5 years ago

After upgrading the build agents, this issue is fixed. Thanks a lot.

btremblaymtech commented 5 years ago

Thanks! It works with the latest build agent