I am publishing build results to Sonarqube, with jenkins. Each commit on git is triggering a jenkins build.
My problem is that build duration is not deterministic so build #2 can finish before build #1. Consequently, results are published to Sonar in wrong order and differential view shows wrong results. For example, if i corrected a unit test in build #2, results of build #1 will tell me that test is failing again.
Build result version is setted and it should be used to order builds instead of publication date. Is there any way to do it?
Thank you.
答案 0 :(得分:1)
SonarQube平台将按照收到的顺序处理分析报告。它无法了解您的Jenkins内部版本号。
您最好的选择是启用Throttle Concurrent Builds选项以确保每个新作业等待轮到他们。这是确保您期望订单的唯一方法。