huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
44 stars 22 forks source link

Unable to trigger a build #220

Closed KinilJain closed 2 years ago

KinilJain commented 2 years ago

I am using Trigger Build task in the deployment group. However, I am receiving the error below when the task is executed. There is no detail/exact error detail found in the log file. Can someone please assist on the same?

2022-06-06T07:52:42.1973682Z ##[section]Starting: Trigger a new build of XXX 2022-06-06T07:52:42.5585922Z ============================================================================== 2022-06-06T07:52:42.5586699Z Task : Trigger Build 2022-06-06T07:52:42.5587485Z Description : This tasks allows to trigger a new Build (add it to the queue) as part of a Build Definition. It contains as well some conditions that can be applied, for example if the last build of certain definition was successful or not. 2022-06-06T07:52:42.5588079Z Version : 4.1.0 2022-06-06T07:52:42.5588502Z Author : Benjamin Huser 2022-06-06T07:52:42.5590424Z Help : 2022-06-06T07:52:42.5590748Z ============================================================================== 2022-06-06T07:52:46.3140463Z Using Custom Team Project 2022-06-06T07:52:46.3142889Z Team Project: XXX 2022-06-06T07:52:46.3143321Z Using Custom Collection Url 2022-06-06T07:52:46.3143684Z Server URL: XXX 2022-06-06T07:52:46.3144418Z Using following Authentication Method: Personal Access Token 2022-06-06T07:52:46.3147959Z Using Personal Access Token 2022-06-06T07:52:48.4303771Z Provided team project was no guid, trying to resolve ID via API... 2022-06-06T07:52:49.0441249Z Found id for team project XXX 2022-06-06T07:52:49.0442984Z Context is Release - using Release Environment Variables 2022-06-06T07:52:49.0444624Z Build shall be triggered for same user that triggered current Release: XXX 2022-06-06T07:52:50.1569881Z Error during request (1/5) 2022-06-06T07:52:50.1571385Z Error message: Error: Could not queue the build because there were validation errors or warnings. 2022-06-06T07:52:50.1572346Z Will wait 1 seconds before retrying request... 2022-06-06T07:52:51.3116692Z Error during request (2/5) 2022-06-06T07:52:51.3117982Z Error message: Error: Could not queue the build because there were validation errors or warnings. 2022-06-06T07:52:51.3118981Z Will wait 2 seconds before retrying request... 2022-06-06T07:52:53.5436200Z Error during request (3/5) 2022-06-06T07:52:53.5437473Z Error message: Error: Could not queue the build because there were validation errors or warnings. 2022-06-06T07:52:53.5438327Z Will wait 4 seconds before retrying request... 2022-06-06T07:52:57.7111567Z Error during request (4/5) 2022-06-06T07:52:57.7113340Z Error message: Error: Could not queue the build because there were validation errors or warnings. 2022-06-06T07:52:57.7114125Z Will wait 8 seconds before retrying request... 2022-06-06T07:53:05.8626806Z Error during request (5/5) 2022-06-06T07:53:05.8627857Z Error message: Error: Could not queue the build because there were validation errors or warnings. 2022-06-06T07:53:05.8669115Z ##[error]Request failed after 5 tries - see error messages in the log 2022-06-06T07:53:05.8886686Z ##[section]Finishing: Trigger a new build of XXX

KinilJain commented 2 years ago

Please disregard this issue. I found the issue, incorrect branch name was supplied