TfsExtensions icon indicating copy to clipboard operation
TfsExtensions copied to clipboard

TriggerBuild@3 suddenly fails on Error message: Error: Could not queue the build because there were validation errors or warnings.

Open Sageatahan opened this issue 2 years ago • 1 comments

The task has worked very well for over a year suddenly I am receiving Error message: Error: Could not queue the build because there were validation errors or warnings. i have the below setting for the task. which should not cause the issue. authenticationMethod: 'OAuth Token' password: '$(System.AccessToken)' please help

Sageatahan avatar Nov 15 '22 13:11 Sageatahan

Hi @Sageatahan

can you post some details from your configuration (or the exactly yaml if you have it)? Did anything change in the build that is being triggered? Are you using variables that you set via the trigger build task?

huserben avatar Nov 15 '22 18:11 huserben

we have the same problem in our pipelines. we are calling a pipeline with a parameters example "target_env:test". it was working fine till last week and now it is failing wit the error: Could not queue the build because there were validation errors or warnings.. (Note: we checked the PAT token and it is valid also the target pipeline is not changed)

We create a dummy pipelines and it works without build parameters and failing with build parameters. we are using the Version : 4.1.1. it worked in version 4.1.0

Could you please fix it ?

venkatest avatar Nov 18 '22 13:11 venkatest

Hi @venkatest

have you made sure that you've set the variables on the triggered build as "overridable" by users?

image

The error "Could not queue the build because there were validation errors or warnings" is coming from the API and not from the task, so it means there seems to be a generic problem. I believe Microsoft might have changed something with the variables and I've seen that you must set the variables as "overridable" that it does not give you a validation error...

Could you try that? I have not changed any code of the task so I believe it's an environment problem rather than one with the task itself.

huserben avatar Nov 18 '22 13:11 huserben

@huserben : We were using variables declared in the pipeline and it was possible to override it. also we were passing variable which was not known to the target pipeline and it worked. like you mentioned/guessed something changed by Microsoft, it started failing.

We added those variable as pipeline variable in UI and set the override option, it works now. we will continue using it like this.

thanks for your help.

venkatest avatar Nov 21 '22 14:11 venkatest

Thanks for checking & confirming @venkatest

@Sageatahan does the same apply to you? Would you be able to check and see if you can fix your issue the same way?

huserben avatar Nov 21 '22 15:11 huserben

Closed due to inactivity

huserben avatar Dec 07 '22 15:12 huserben