Description of problem Jenkins job is delayed to delete for about 1 minute after removing pipeline build in openshift Version-Release number of selected component (if applicable): brew-pulp-xxxxxx/openshift3/jenkins-2-rhel7 v3.10(v3.10.0.20180406.113022) 838c3e9ab0d9 openshift v3.10.0-0.15.0 How reproducible: always Steps to Reproduce: 1. Create pipeline bc and other resources 2. Start a pipeline build and wait build to complete 3. Delete pipeline build in openshift 4. Check the The corresponding Jenkins job in jenkins webconsole Actual results: The corresponding Jenkins job in webconsole is delayed to delete for about 1 minute Expected results: Should delete jenkins job synchronously Additional info:
Ben/Gabe, Once the run reaches the onComplete or onFinalized section of the code it is removed from the runsToPoll list and is essentially ignored until the run gets deleted by the reconciler. This was the existing logic and why runs were stacking up and not being removed at all when builds were deleted from OpenShift. Is the desired behavior that the BuildSyncRunListener should check every 5 seconds for deleted builds and remove the associated job runs?
Submitted pull request https://github.com/openshift/jenkins-sync-plugin/pull/224
Pull request has been merged
@Corey Daley could you move status to ON_QA,so I can verify it
verified in Version-Release number of selected component (if applicable): brew-pulp-xxxxxx/openshift3/jenkins-2-rhel7 v3.10 ac1e304de673 sync plugin v1.0.14
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1816