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
{{ message }}
Repository navigation
[Bug][Jenkins] _raw_jenkins_api_builds table becomes bloated with faulty records #8430
I had searched in the issues and found no similar issues.
What happened
overtime the _raw_jenkins_api_builds table becomes full of records which are faulty, the params and input for a row are not in sync with the url of the jobs, i.e when params is connectionId:"2", FullName:"FE/frontend" the url points to a backend job in a different jenkins folder
What do you expect to happen
records should be created correctly
How to reproduce
configure projects with different multi-branch-pipelines and then after sometime those kinds of records will appear
To address the issue of the _raw_jenkins_api_builds table becoming bloated with faulty records, you can ensure that the job name and path are correctly extracted from the input when dealing with multi-branch workflows. The existing code snippet already includes a mechanism to handle this:
input:=&SimpleJob{}
err1:=json.Unmarshal(row.Input, input)
iferr1==nil&&input.Class==WORKFLOW_JOB {
// For jobs from multi-branch workflow, the job name and path must come from the input,// otherwise it will be set to the multi-branch workflow name and pathjobName=input.NamejobPath=input.PathfullName=fmt.Sprintf(`%s#%d`, input.FullName, body.Number)
}
This code checks if the input can be unmarshaled into a SimpleJob and if the class is WORKFLOW_JOB. If so, it uses the job name and path from the input, ensuring they are in sync with the URL of the jobs in Jenkins. This approach helps maintain consistency and prevents the table from being populated with incorrect records [1].
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
Activity
dosubot commentedon May 7, 2025
To address the issue of the
_raw_jenkins_api_buildstable becoming bloated with faulty records, you can ensure that the job name and path are correctly extracted from the input when dealing with multi-branch workflows. The existing code snippet already includes a mechanism to handle this:This code checks if the input can be unmarshaled into a
SimpleJoband if the class isWORKFLOW_JOB. If so, it uses the job name and path from the input, ensuring they are in sync with the URL of the jobs in Jenkins. This approach helps maintain consistency and prevents the table from being populated with incorrect records [1].To reply, just mention @dosu.
Docs are dead. Just use Dosu.
github-actions commentedon Jul 7, 2025
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
KyriosGN0 commentedon Jul 7, 2025
Not stale
Still needs a solution
github-actions commentedon Sep 7, 2025
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
KyriosGN0 commentedon Sep 7, 2025
Not stale
github-actions commentedon Nov 7, 2025
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
KyriosGN0 commentedon Nov 7, 2025
Not stale
3 remaining items
KyriosGN0 commentedon Jan 7, 2026
Not stale
github-actions commentedon Mar 9, 2026
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
KyriosGN0 commentedon Mar 9, 2026
not stale
fix(jenkins): scope multi-branch build collection to current project (a…
fix(jenkins): scope multi-branch build collection to current project (#…
fix(jenkins): scope multi-branch build collection to current project (a…
fix(jenkins): scope multi-branch build collection to current project (a…
fix(jenkins): scope multi-branch build collection to current project (a…
fix: Copilot plugin - add backfill time window to ensure data consist…
Sync upstream Apache DevLake (v1.0.3-beta9 → beta15) (#22)