Hi everyone:
I’m running a Jenkins server on a Mac mini and have been using scheduled (cron-based) builds. Everything worked fine initially, but after about two weeks, I started encountering an unusual issue involving duplicate and inconsistent builds.
Here’s the setup:
Job A is configured with a periodic (scheduled) build trigger.
Job B is set up as a downstream job that is triggered by Job A (i.e., Job A is its upstream project).
At first, both jobs ran as expected. However, roughly two weeks later, some previously successful builds of Job B were unexpectedly re-triggered—using the exact same build parameters and Git branch as they had two weeks prior.
For example (as shown in the attached screenshot):
Build #2596 of Job B was triggered by build #2791 of Job A.
But build #2791 of Job A was completed weeks ago, not recently.
Strangely, this problematic build (#2596) does not appear in the standard build history list on Job B’s main page. I can only access it by manually entering the build number in the URL (e.g., /job/JobB/2596/).
Despite being hidden from the UI, the build artifacts for #2596 do exist, and their timestamps match what’s shown on the build page.
This behavior is very puzzling. Has anyone else experienced something similar?
Additional context:
The Mac mini has been running continuously for several months without issues—only Jenkins exhibits this problem.
Last week, I disabled the scheduled trigger on Job A entirely. As expected, no new scheduled builds occurred.
However, even after disabling the trigger, old builds from two weeks ago are still somehow re-triggering Job B, again using outdated parameters and Git states.
Any insights or suggestions would be greatly appreciated!
Thanks in advance!
Jenkins setup:
Jenkins:2.462.3
OS:MacOS X 14.6.1
| awt.toolkit | sun.lwawt.macosx.LWCToolkit |
|---|---|
| executable-war | /opt/homebrew/Cellar/jenkins-lts/2.462.1/libexec/jenkins.war |
| file.encoding | UTF-8 |
| file.separator | / |
| gopherProxySet | false |
| java.awt.graphicsenv | sun.awt.CGraphicsEnvironment |
| java.awt.headless | true |
| java.awt.printerjob | sun.lwawt.macosx.CPrinterJob |
| java.class.path | /opt/homebrew/opt/jenkins-lts/libexec/jenkins.war |
| java.class.version | 55.0 |
| java.home | /Users/mini01/Library/Java/JavaVirtualMachines/corretto-11.0.23/Contents/Home |
| java.io.tmpdir | /var/folders/pp/bjz3x17d2v3cqh95fy_v00_c0000gn/T/ |
| java.library.path | /Users/mini01/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. |
| java.runtime.name | OpenJDK Runtime Environment |
| java.runtime.version | 11.0.23+9-LTS |
| java.specification.maintenance.version | 2 |
| java.specification.name | Java Platform API Specification |
| java.specification.vendor | Oracle Corporation |
| java.specification.version | 11 |
| java.vendor.version | Corretto-11.0.23.9.1 |
| java.version | 11.0.23 |
| java.version.date | 2024-04-16 |
| java.vm.compressedOopsMode | Zero based |
| java.vm.info | mixed mode |
| java.vm.name | OpenJDK 64-Bit Server VM |
| java.vm.specification.name | Java Virtual Machine Specification |
| java.vm.specification.vendor | Oracle Corporation |
| java.vm.specification.version | 11 |
| java.vm.vendor | Amazon.com Inc. |
| java.vm.version | 11.0.23+9-LTS |
| jdk.debug | release |
| jetty.git.hash | 3a745c71c23682146f262b99f4ddc4c1bc41630c |
| jna.loaded | true |
| jna.platform.library.path | /usr/lib:/usr/lib |
| jnidispatch.path | /Users/mini01/Library/Caches/JNA/temp/jna11177946807624845739.tmp |
| line.separator | |
| mail.smtp.sendpartial | true |
| mail.smtps.sendpartial | true |
| os.arch | aarch64 |
| os.name | Mac OS X |
| os.version | 14.6.1 |
| path.separator | : |
| sun.arch.data.model | 64 |
| sun.awt.enableExtraMouseButtons | true |
| sun.boot.library.path | /Users/mini01/Library/Java/JavaVirtualMachines/corretto-11.0.23/Contents/Home/lib |
| sun.cpu.endian | little |
| sun.cpu.isalist | |
| sun.font.fontmanager | sun.font.CFontManager |
| sun.io.unicode.encoding | UnicodeBig |
| sun.java.command | /opt/homebrew/opt/jenkins-lts/libexec/jenkins.war --httpPort=80 --httpListenAddress=0.0.0.0 |
| sun.java.launcher | SUN_STANDARD |
| sun.jnu.encoding | UTF-8 |
| sun.management.compiler | HotSpot 64-Bit Tiered Compilers |
| sun.os.patch.level | unknown |
| svnkit.http.methods | Digest,Basic,NTLM,Negotiate |
| svnkit.ssh2.persistent | false |
| user.country | CN |
| user.dir | /Users/mini01/Desktop |
| user.home | /Users/mini01 |
| user.language | zh |
| user.name | mini01 |
| user.script | Hans |
| user.timezone | Asia/Shanghai |
