In any case, I would recommend moving away from Freestyle jobs and polling SCM. Switching all jobs to Jenkins Multibranch pipeline and relying on webhooks to trigger builds is the better/best practice.
@fgurr any tip what we can do that we get our scm checking back. Previously we had it that the SCM was checked once a day if there are new commits on one of our three main work branches where done, and if there are, a build and deploy was started. This is very convenient for our beta testers and they would love to get that back.
@fgurr I tried now different options. Neither SCM polling nor "Build triggers -> Build periodically" works. For me this seems to be a Jenkins server problem. Can you please look into that. We currently have no one that is capable of setting up Jenkins Multibranch pipeline with webhooks and our previous setup did exactly what we need for the last 6 years or more.
https://ci.eclipse.org/4diac/view/all/job/4diac%20IDE%20Develop/ runs successfully with semeru-jdk21-latest. This is a strong hint that the issue is related to memory issues. The obvious and common clue of a "Killed" line in the console log is weirdly missing.
May I suggest the same approach as recommended by Fred? Multibranch pipeline and webhook.
Looking at the job configuration, I don't think this is a huge rework with so many benefits.
One last thing, 4diac project has 1 resource pack, which means 4CPU and 8GiB.
And looking at our dashboard for the last 7 days, this is underuse compared to what we offer.
no time triggered builds are working neither poll SCM nor build periodical is working.
Thanks for testing this, I'll investigate and do more tests next Monday.
Thanks!
And even if they would it currently offers more then what we need.
Interesting, your feedback on this ticket would be valuable. #4759
I fear we would be a bad testimonial. One of the reasons we don't need more is that we rely on github workflows for our PR integration and test builds. JIPP we now only use for our nightly, milestone, and RC builds, so that we get Eclipse signing and deployment to download.eclipse.org.
Maybe one other reason is that we still have way to little tests.
On the other hand we also have a rather simple build, with mostly only dependencies to SimRel components. Not sure if this has an impact here.
The following triggers took a long time to process. This is usually caused by networking issues or high load on the Jenkins controller. As a result, other triggers could be delayed and scheduled tasks may not have started at the expected time.
I wonder if there is a conflict with another plugin. Is the migration from gerrit to github complete? we could try to disable all gerrit jobs, and remove the gerrit plugin.
At the same time, I have set log FINEST for the scheduler. We'll see if we can get relevant data.
There is also this SEVERE message in the log. This is another lead.
2024-07-01 12:10:38.829+0000 [id=45] INFO o.j.p.ghprb.GhprbPullRequest#<init>: Author of #237 pazi146 on eclipse-4diac/4diac-ide not in whitelist!2024-07-01 12:10:39.095+0000 [id=45] SEVERE o.j.p.ghprb.GhprbRepository#addComment: Could not add comment to pull request #237: 'Can one of the admins verify this patch?'org.kohsuke.github.HttpException: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"401"}at org.kohsuke.github.GitHubConnectorResponseErrorHandler$1.onError(GitHubConnectorResponseErrorHandler.java:62)at org.kohsuke.github.GitHubClient.detectKnownErrors(GitHubClient.java:504)at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:464)at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:427)at org.kohsuke.github.Requester.fetch(Requester.java:85)``
Yes our migration to github is complete. So we would be totally fine to remove the gerrit plugin from our Jenkins jobs. But the jobs in question where never gerrit jobs. Not sure if that matters.
After reading the log file content I got suspicious. I now either disabled or deleted all outdated and not used Jenkins jobs. With your feedback I somehow had the feeling that they are maybe interfering. Let's see.