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

Unable to checkin artifacts #15

Closed JPGRodrigues closed 8 years ago

JPGRodrigues commented 8 years ago

System.Management.Automation.MethodInvocationException: Exception calling "EvaluateCheckin2" with "6" argument(s): "The array must contain at least one element.

Parameter name: changes" ---> System.ArgumentException: The array must contain at least one element.

Parameter name: changes

at Microsoft.TeamFoundation.Common.TFCommonUtil.CheckArrayForNullOrEmpty[T](T[] array, String arrayName)

at Microsoft.TeamFoundation.VersionControl.Client.Workspace.EvaluateCheckin2(CheckinEvaluationOptions options, IEnumerable1 allChanges, IEnumerable1 changes, String comment, CheckinNote checkinNote, WorkItemCheckinInfo[] workItemChanges)

at CallSite.Target(Closure , CallSite , Object , Object , Object , Object , Object , Object , WorkItemCheckinInfo[] )

--- End of inner exception stack trace ---

at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)

at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)

at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)

at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)

at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)

at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()

at System.Management.Automation.CommandProcessorBase.Complete()

jessehouwing commented 8 years ago

Looks like no changes were detected. Are there changed files when calling the task?

jessehouwing commented 8 years ago

Please verify with the latest build

JPGRodrigues commented 8 years ago

Love the fix... If there is no item to checkin, then there is no error! Thank you,João Paulo

Date: Mon, 22 Feb 2016 01:30:11 -0800 From: notifications@github.com To: vsts-tfvc-tasks@noreply.github.com CC: JPGRodrigues@Live.COM Subject: Re: [vsts-tfvc-tasks] Unable to checkin artifacts (#15)

Please verify with the latest build

— Reply to this email directly or view it on GitHub.

JPGRodrigues commented 8 years ago

With the new build, there is no error when no updates are needed! Thank you.

jessehouwing commented 8 years ago

I just released a major update of the tasks, which adds auto-detect changes to the Checkin task. Would love to get your feedback.