Closed syunwei closed 2 years ago
Hi Ben,
I was able to trigger another job in another pipeline by using TriggerBuild extension.
The original problem was from Azure DevOps, the DefaultBranch in Azure DevOps was set to master and my pipeline was running from a YAML file from another branch.
After setting default branch to my another branch and set useSameBranch
to false, the pipeline triggering worked.
I thank you very much for developing this extension which saves a lot of developers' time.
Is it possible to expose error and warnings from Azure DevOps in order to identify the issue more quickly ?
In stead of having an error message like 'Error message: Error: Could not queue the build because there were validation errors or warnings.', the reasons the error/warning will be very helpful for debugging.
Thank you again for your time and effort on developing this extension :)
Hi @syunwei
ok that would have been my first suggestion as well. I'm glad you managed to work around your problem.
This error is actually what we get from the API, there is not more to show. So sadly nothing that can be done about that I feel.
As the problem is solved for you I'll close this issue. Thanks for reporting this and updating here on the solution that worked the problem, that way others will also be able to profit from it if they face the same issue.
Hi Ben,
Thank you so much for developing this extension. I got an error on 'Could not queue the build because there were validation errors or warnings.', think the error is from Azure DevOps. I've tried to trigger another build in another pipeline which is under the same repo, for example, pipeline1 triggers a build in pipeline2 and pipeline yaml files for pipeline1 and pipeline2 are in the same repo. But it has an error when pipeline2's yaml file is from another repo. Please see the following logs:
pipeline1.yaml:
pipeline2.yml
Just wanted to confirm this extension is working even if the pipelines are in different repos? and if it's supported could you please check the config above to see what parameter is wrong? Thank you.