You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a job that builds on each commit. This can cause a build to be scheduled whilst a build is still running. This second build waits for the first build to finish and them immediately starts. Each build takes a couple of minutes.
SirenOfShame does not record the result of the first build.
The code in HudsonBuildStatus GetBuildStatus looks to generate a call to Jenkins like this ...
https://url/ci/job/job_name/api/xml
And from the returned XML looks at the latBuild/number element. It uses this build number to generated this
https://url/ci/job/job_name/575/api/xml
where 575 is the last build number.
The resultant XML is passed to GetBuildStatusAndCommentsFromXDocument and presumably processed into Siren of Shame.
So this happens
Jenkins - Build 1 starts
SoS - checks last build - gets 1
SoS - checks build status for build 1 - still running
SoS - checks last build - gets 1
SoS - checks build status for build 1 - still running
Jenkins - build 1 completes and build 2 starts
SoS - checks last build - gets 2
SoS - checks build status for build 2 - still running
SoS - checks last build - gets 2
SoS - checks build status for build 2 - still running
Jenkins - build 2 completes - no other build starts
SoS - checks last build - gets 2
SoS - checks build status for build 2 - complete success or fail
Therefore the result of build 1 is never recorded.
Hope that makes sense!
The text was updated successfully, but these errors were encountered:
We have a job that builds on each commit. This can cause a build to be scheduled whilst a build is still running. This second build waits for the first build to finish and them immediately starts. Each build takes a couple of minutes.
SirenOfShame does not record the result of the first build.
The code in HudsonBuildStatus GetBuildStatus looks to generate a call to Jenkins like this ...
And from the returned XML looks at the latBuild/number element. It uses this build number to generated this
where 575 is the last build number.
The resultant XML is passed to GetBuildStatusAndCommentsFromXDocument and presumably processed into Siren of Shame.
So this happens
Therefore the result of build 1 is never recorded.
Hope that makes sense!
The text was updated successfully, but these errors were encountered: