I am using Jenkins to build an rpm
for some custom software.
During the build there must be a race condition that only seems to appear when building the RPM, which results in the job finishing successfully, but the software not being built correctly.
The most obvious way to tell the build is a false positive is to check how quickly the build stage
finished.
During an actually successful run, the build stage will take approximately an hour. When a false positive occurs it will finish in less than 25 minutes.
The end goal of course is to fix the race condition, but preventing the pipeline from creating a bad RPM and saying the pipeline was successful in the mean time would be a great help.