Closed BenPhegan closed 12 years ago
Thanks for the patch. I believe it could be implemented in Java-side in order to report this are a trigger error. Have you created an issue in the tracker for that?
The fix in the .NET-side looks useful, but I supports it's better to fail on that and not continue.
Thanks for type fix!
The issue is http://youtrack.jetbrains.com/issue/TW-24105
Hi Eugene,
It would help if it was in Java side as well, however the fix above does still provide a trigger error on the build that has an incorrect trigger, so you don't lose notification of failure on the Java side. Failing on the .Net side is very hard to troubleshoot without a lot of NuGet knowledge, so I don't think not fixing it is a good option. Best set of fixes I could imagine (for our use case)
Java and I are not friends, but if I get time I will look into the Java side as well. But I really don't think that you can fix it only on the Java side.
Regards,
Ben
Got your point. I remember I added a code that issues a trigger error if there was 0 packages detected in the feed. Do you have an example of broken feed urls for me to update Java-side check?
The value that tripped us up was something along the lines of "%env.NuG". Which should have been "%env.NuGetGalleryServer%". Pretty simple typo, but easy to make. I think that this is probably the most frequent one that we would see as all our triggers inherit from templates/projects.
I improved the change, please merge it back
Hi,
This fix is related to an issue when a trigger is entered with an incorrect NuGet server URL. In this instance, it appears that the plugin will fail to check any packages that are provided in that run.
This simply check validity of the URI prior to creating an IQueryable set of packages, and alert via logging rather than blow up.
Also a tiny little typo fix.
Note: No tests are provided. I would be happy to add them, but first it would probably help if I had a chat about how they are currently set up and what the expectation for success are, as at the moment even without these changes I can only get 10 out of 124 tests to pass (28 ignored).
Regards,
Ben Phegan