Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'Build' resource synchronization and update for Jenkins idler #19

Closed
hrishin opened this issue Feb 28, 2018 · 4 comments
Closed

Fix 'Build' resource synchronization and update for Jenkins idler #19

hrishin opened this issue Feb 28, 2018 · 4 comments
Assignees

Comments

@hrishin
Copy link
Member

hrishin commented Feb 28, 2018

At present plugin synchronize the Build resource at the interval of 5 seconds. As part of synchronization, it looks like plugin updates the build's start and completion time even if nothing has changed for the build.
This behavior is causing an issues#130 in the Jenkins idler, it's expecting to update the Build resource in Openshift only when there is change happen in the build with respect to the last one. Otherwise, don't update any resource in OpenShift if nothing happens.

Tasks:

  • Confirm if build synchronization is really updating the build time. If yes then confirm the reason for such kind of behavior. This sync plugin is fork(downstream) of the upstream OpenShift Jenkins Plugin. Changin this behavior needs to consider the effect on upstream project as unifying efforts are going on between downstream and upstream project

cc: @gabemontero @rupalibehera @aslakknutsen @pradeepto

@gabemontero
Copy link

Hey @hrishin

Had something similar pop up in the first openshift online deployments.

We now have https://github.com/openshift/jenkins-sync-plugin/blob/master/src/main/java/io/fabric8/jenkins/openshiftsync/BuildSyncRunListener.java#L237-L271

And

https://github.com/openshift/jenkins-sync-plugin/blob/master/src/main/java/io/fabric8/jenkins/openshiftsync/BuildSyncRunListener.java#L398-L402

I don't see that in the fabric job-to-bc version.

You do appear to have picked it up in #12

By the way, what is the status of that PR? Did you have a chance to process the 2 bugs I found? and the solution I provided for one of those 2 bugs?

@hrishin
Copy link
Member Author

hrishin commented Mar 5, 2018

@hrishin hrishin self-assigned this Mar 6, 2018
@pradeepto
Copy link

@hrishin Are you picking this up in this sprint? If so, please assign yourself.

@chmouel chmouel assigned piyush-garg and unassigned hrishin Apr 23, 2018
piyush-garg added a commit to piyush-garg/jenkins-sync-plugin that referenced this issue May 1, 2018
Now build will be updated only when there will be change
Also disable the 30 sec. limit of uodate. Hence it will update when there will be a change
and will poll at an interval of 5 sec.
fabric8io#19
@piyush-garg
Copy link

As #24 is merged, I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants