-
Bug
-
Resolution: Unresolved
-
Major
-
None
In some Jenkins, some builds are getting deleted from job page and unix machine. we suspect it's some issue with open shift sync plugin. from the jenkins log:
{{INFO: onDeleted job/ocp-oc-cd-for-fit/job/ocp-oc-cd-for-fit-oc-cd-ocp/4272/
Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun
INFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272
Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun
WARNING: Unable to delete run ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272:ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272: /pciuser/tools/jenkins/jenkins-production/jobs/ocp-oc-cd-for-fit/jobs/ocp-oc-cd-for-fit-oc-cd-ocp/builds/4272 looks to have already been deleted; siblings: [4259, 4138, 3351, 4271, 3753, 4277, lastUnstableBuild, 4139, 4276, legacyIds, 4280, 3385, 49, 4260, 3722, lastStableBuild, 4275, lastFailedBuild, 4279, 3220, 3413, 4270, *****4254, lastUnsuccessfulBuild, 3404, 4220, lastSuccessfulBuild, 4215, 4278] Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRunINFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4271INFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270Jun 27, 2019 7:28:51 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun*****WARNING: Unable to delete run ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270:ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270: /pciuser/tools/jenkins/jenkins-production/jobs/ocp-oc-cd-for-fit/jobs/ocp-oc-cd-for-fit-oc-cd-ocp/builds/4270 looks to have already been deleted; siblings: [4259, 4138, 3351, 3753, 4277, lastUnstableBuild, 4139, 4276, legacyIds, 4280, 3385, 49, 4260, 3722, lastStableBuild, 4275, lastFailedBuild, 4279, 3220, 3413, 4254, lastUnsuccessfulBuild, 3404, 4220, lastSuccessfulBuild, 4215, 4278]
Jun 27, 2019 7:28:51 AM io.fabric8.jenkins.openshiftsync.BuildWatcher reconcileRunsAndBuilds}}
A couple of points Ariel:
a) actually I've just transferred ownership of the openshift/jenkins stuff to another team within RedHat. I've assigned one of those developers here.
b) that said, you've encountered a known feature with our sync plugin, where the sync plugin will delete associated runs for build the openshift build controller deletes on the openshift side
You can control pruning on the openshift side via https://docs.openshift.com/container-platform/3.11/dev_guide/builds/advanced_build_operations.html#build-pruning
there are no separate controls on the sync plugin side to turn on and off .... but you can work with Vibhav about requesting a new feature if the openshift side controls are not sufficient