[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Karol Lassak commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches Michel Zanini we also found that issue that all our ~ 800 repos was reindexed every night (ofc one day is not enough to reindex all of them with GH API limits) But I found way how to fix it.. See https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/JenkinsJobManagement.java#L456 If your configuration is not changed then updateByXml is not called, so no reindexing is done.. In our case it was even harder to catch cause jobs itself did not changed but folders did (we have some portlets there that have random ID by default) We changed them to static IDs and problem is gone.. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.1246.1577830680647%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches [~renescheibe], they might have changed but might NOT as well. Scanning it on every update is expensive because Bitbucket has limits on API calls.At least, at minimum, maybe one thing what could be done is to triggered trigger the scan in the future at a random time. For example, choose a random time from in a space of 1 hour from now and run at that time. That way the calls will be spread out. Maybe this period could even be configured. That's how periodic triggers work. Actually, again, maybe it is not needed to have it on update. Because if you have it on create, and use a periodic trigger, it should be fine as eventually the job will be corrected.At the moment, with the change that has being made, its impossible to update several jobs at the same time. There is no flag, nothing I can do to disable this. So its unusable. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.6230.1576149480633%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches René Scheibe, they might have changed but might NOT as well. Scanning it on every update is expensive because Bitbucket has limits on API calls. At least, at minimum, maybe one thing could be done is to triggered the scan in the future at a random time. For example, choose a random time from in a space of 1 hour from now and run at that time. That way the calls will be spread out. Maybe this period could even be configured. That's how periodic triggers work. Actually, again, maybe it is not needed to have it on update. Because if you have it on create, and use a periodic trigger, it should be fine as eventually the job will be corrected. At the moment, with the change that has being made, its impossible to update several jobs at the same time. There is no flag, nothing I can do to disable this. So its unusable. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.6210.1576149420678%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title René Scheibe commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches Michel Zanini triggering a scan is required on job update too as different things might have changed, e.g. the repository, different behaviours (looking for branches and/or pull request and/or tags, filtering of heads and so on...). Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5757.1576090140686%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues.This is what I am using now:{code:java}triggers { periodic(24 * 60) //every 24 hours} {code} This does not mean that all jobs will trigger the scan every at the same time. Unless I am wrong they are spread randomically and happen separately. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5528.1576072860918%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues.This is what I am using now:{code:java}triggers { periodic(24 * 60) //every 24 hours}{code}This does not mean that all jobs will trigger the scan every day at the same time. Unless I am wrong they are spread randomically and happen separately. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5549.1576072861375%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues.This is what I am using now:{code:java}triggers { periodic(24 * 60)//every 24 hours }{code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5507.1576072801390%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues.This is what I am using now: {code:java} ``` triggers { periodic(24 * 60)} ``` {code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5486.1576072800943%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues. This is what I am using now:```triggers { periodic(24 * 60)}``` Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5465.1576072740553%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches Also, another suggestion is do what has being done here but only if the job has just being created for the first time, then you trigger the scan, but not on a job update. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5444.1576072680600%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches But you can configure the the trigger to be every day or every week etc. They go randomically and then the API calls are spread and don't cause issues. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5423.1576072620570%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title greg oire commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches You were suggesting to enable the index scan trigger to prevent the initial scan. I was just pointing out that it is not always possible as it would result jenkins to make a lot of api call from time to time, that would result in the exact same issue. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5396.1576072322843%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches I am not sure I understood well what you mean greg oire. The issue here is that my seed job creates/updates many jobs every few hours. That was working ok before and now after this change it started re-scanning all of the jobs at once. Do you agree this is a problem or what are you suggesting? Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5375.1576071840802%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title greg oire commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches Triggering scan is not always possible. For instance you speak about 250 repos let say around 15 branches per repos that will quickly kill your api quota. On large orgs, you do that exceptionally and more per repos than at full scale Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.5354.1576071600850%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini edited a comment on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches PR [https://github.com/jenkinsci/branch-api-plugin/pull/158] was merged to fix this issue but has caused a worse issue in my opinion.My seed job runs every 4 hours, it scans repositories in Bitbucket and create and/or update hundreds of jobs as a result.After updating the Branch API plugin to 2.5.5 with this PR included, now every 4 hours, ALL my ~ 250 jobs are triggering a branch scanning at the same time after seed job completes.This causes several API calls to Bitbucket all at the same time and then they hang, as Bitbucket has a limit on number of API calls.That means I have to revert the plugin to 2.5.4 as its impossible to continue with this behaviour. I understand what you are trying to fix here - to run it initially when the job gets created for the first time. But it should not happen when the job gets updated.Also, using a scan trigger fixes your the problem of initial branch scanning and it is recommend to use one anyway (as sometimes Webhooks will be missed). It has never being a problem for us. Anyway, I think this has made things worse at the point of being a blocker.Thanks. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Michel Zanini commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches PR https://github.com/jenkinsci/branch-api-plugin/pull/158 was merged to fix this issue but has caused a worse issue in my opinion. My seed job runs every 4 hours, it scans repositories in Bitbucket and create and/or update hundreds of jobs as a result. After updating the Branch API plugin to 2.5.5 with this PR included, now every 4 hours, ALL my ~ 250 jobs are triggering a branch scanning at the same time after seed job completes. This causes several API calls to Bitbucket all at the same time and then they hang, as Bitbucket has a limit on number of API calls. That means I have to revert the plugin to 2.5.4 as its impossible to continue with this behaviour. I understand what you are trying to fix here - to run it initially when the job gets created for the first time. But it should not happen when the job gets updated. Also, using a scan trigger fixes your problem and it is recommend to use one anyway (as sometimes Webhooks will be missed). It has never being a problem for us. Anyway, I think this has made things worse at the point of being a blocker. Thanks. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Aaron Franssell commented on JENKINS-39682 Re: Generated Multibranch Pipeline Job does not index branches John F did that resolve your issue? I got hit by the exact same thing on my project. I tried greg oire's suggestion but that didn't work either... Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.4013.1570651140527%40Atlassian.JIRA.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Liam Newman assigned an issue to Daniel Spilker Jenkins / JENKINS-39682 Generated Multibranch Pipeline Job does not index branches Change By: Liam Newman Assignee: Stephen Connolly Daniel Spilker Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.7587.1562784300916%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39682) Generated Multibranch Pipeline Job does not index branches
Title: Message Title Daniel Spilker updated an issue Jenkins / JENKINS-39682 Generated Multibranch Pipeline Job does not index branches Change By: Daniel Spilker Summary: Generated Mutlibranch Multibranch Pipeline Job does not index branches Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176259.1478899646000.1668.1560773760617%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.