Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
The jenkins4eval arm docker image, specifically
jenkins4eval/jenkins:2.263-alpine-arm64
-
-
1.3.11
Description
- Install the NodeJS Plugin
- Create a NodeJS 14 tool
- Attempt to reference said tool in a pipeline
- Watch it crash with the stacktrace below
jenkins.plugins.nodejs.tools.DetectionFailedException: Unknown CPU architecture: aarch64 at jenkins.plugins.nodejs.tools.CPU.detect(CPU.java:111) at jenkins.plugins.nodejs.tools.CPU.of(CPU.java:69) Caused: jenkins.plugins.nodejs.tools.DetectionFailedException: Error getting system properties on remote Node at jenkins.plugins.nodejs.tools.CPU.of(CPU.java:71) at jenkins.plugins.nodejs.tools.ToolsUtils.getCPU(ToolsUtils.java:43) at jenkins.plugins.nodejs.tools.ToolsUtils.getCPU(ToolsUtils.java:39) at jenkins.plugins.nodejs.tools.NodeJSInstaller$NodeJSInstallable.forNode(NodeJSInstaller.java:344) at jenkins.plugins.nodejs.tools.NodeJSInstaller$NodeJSInstallable.forNode(NodeJSInstaller.java:335) at jenkins.plugins.nodejs.tools.NodeJSInstaller.performInstallation(NodeJSInstaller.java:115) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:217) at jenkins.plugins.nodejs.tools.NodeJSInstallation.forNode(NodeJSInstallation.java:95) at jenkins.plugins.nodejs.tools.NodeJSInstallation.forNode(NodeJSInstallation.java:63) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:152) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:133) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Finished: FAILURE
nfalco Cheers mate. Thanks for your prompt response. Actually, I ran my project on an M1 chip MacBook Pro in a jenkins4eval/jenkins container, which inside the docker preview version. I have two JRE version on my laptop, one is "Zulu 13.35.1025 [13.0.5.1]", another is "JRE "[15.0.1]". So, I got the two different results of that code: "aarch64, Mac OS X" and "x86_64, Mac OS X". I believe the Zulu one is my primary JRE environment.